Skip to main content

Notifications

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 63

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

  • SivaR Profile Picture
    63 on at
    RE: unique key error check is missing in the marketing page (landing page) in dynamics 365

    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

  • Verified answer
    cloflyMao Profile Picture
    25,208 on at
    RE: unique key error check is missing in the marketing page (landing page) in dynamics 365

    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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 102

Overall leaderboard

Product updates

Dynamics 365 release plans