web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

unique key error check is missing in the marketing page (landing page) in dynamics 365

(0) ShareShare
ReportReport
Posted on by 71

Hi

I am using a marketing page (landing page) for external users to subscribe a newsletter.

i applied a unique key to email address for the Contact entity. However, when a user tries to re-subscribe with the same email, the user record is updated with the later selection instead of preventing with an error.

How i can make the Marketing page preventing the re-submission with same email.  

Thank you so much,

Siva

I have the same question (0)
  • Verified answer
    cloflyMao Profile Picture
    25,210 on at

    HI Siva,

    Could I confirm some details of your requirement:

    How long would you like to prevent user to submit form with same email?

    You could use localStorage object to store previous email, at formSubmit event, read the value from ls object and compare whether it is equal to current email, if yes, then do event.preventDefault.

    However, it won't be cleared automatically unless users clear their browser cache, or we could set a expiration timestamp in ls object, the ls will be remove it when a specific time comes.

    Regards,

    Clofly

  • SivaR Profile Picture
    71 on at

    thank you Cofly,

    Following solution helped me to resolve the issue. 

    https://community.dynamics.com/365/marketing/f/dynamics-365-for-marketing-forum/396395/forwarding-to-error-page-from-marketing-page-in-dynamics-365

    Regards,

    Siva

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 142 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
11manish Profile Picture

11manish 121

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans