Skip to main content

Notifications

Customer Insights - Journeys forum
Answered

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

Posted on by 459

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
    SivaR 459 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
    cloflyMao 25,194 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

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,186 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,996 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans