Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id : p3peUd18NJ+eZAdi94Uxh7
Customer experience | Sales, Customer Insights,...
Answered

Preventing Personal Emails from filling out a Dynamics Marketing Form

Like (0) ShareShare
ReportReport
Posted on 9 Jan 2023 20:15:19 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
    Microsoft Employee on 10 Jan 2023 at 08:39:48
    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete