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.
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:
You can also prevent your own code from being lost by using the official method provided at:
André Arnaud de Cal...
291,996
Super User 2025 Season 1
Martin Dráb
230,853
Most Valuable Professional
nmaenpaa
101,156