Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Preventing Personal Emails from filling out a Dynamics Marketing Form

(0) ShareShare
ReportReport
Posted on by 96

Hello Community

I found this helpful article on how to prevent personal email accounts from submitting a marketing form Restrict Dynamics 365 Marketing Landing Page Form Submissions — Amey Holden | ABC Enthusiast & Power Platform Specialist, however I am curious if there is another approach which code could be introduced on the form instead of having to update code on the webpage which the form will be embedded on. We have gated content which we do not want to allow those submitting with personal emails addresses to access the content.

We have several different contact forms embedded externally on our company website for different products, so using the javascript method suggested by Amey Holden, code will need to be created for each form so it includes the proper unique Form ID for each and added to each webpage's code so it works as intended. If changes are made, we would have to ensure the custom javascript included on each webpage will still work or if the Form ID will need to be changed. 

I'd like to see if there is a way to add code to the Form's code and not the webpage code and achieve similar results of preventing personal email accounts from entering their personal email or from submitting our Dynamics Marketing Forms. 

TYIA for any suggestions and feedback.

  • Verified answer
    Haig Liu Profile Picture
    Haig Liu Microsoft Employee on at
    RE: Preventing Personal Emails from filling out a Dynamics Marketing Form

    Hi Christopher Peterson,

    At first, I recommend that you place the script on the marketing page rather than the marketing form.

    Sometimes missing code happens when we place non-style code on marketing forms.

    Fortunately, this code can be placed directly inside the form:

    pastedimage1673338242392v1.png

    pastedimage1673338437495v2.png

    You can also prevent your own code from being lost by using the official method provided at:

    https://learn.microsoft.com/en-us/dynamics365/marketing/developer/marketing-form-client-side-extensibility

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 Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,996 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans