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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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.

I have the same question (0)
  • Verified answer
    Haig Liu Profile Picture
    Microsoft Employee on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 180 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans