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

Do not allow to submit a marketing form with a private email

(0) ShareShare
ReportReport
Posted on by 25

Hi, 

is it possible to not allow form submission if a private email is inserted and to require to enter a business email? Basically it would mean blocking all the gmail.com and co. email domains on a specific form.
There are some cases when e.g. only clients are allowed to participate, so we can only allow registration with business email addresses. 

Thanks!

Regards

I have the same question (0)
  • Verified answer
    Nya Profile Picture
    29,060 on at

    Hi,

    You can add some JavaScript into your marketing form to validate the email address.

    Please refer to the following documentation to know more about it.

    Extend marketing forms using code (Dynamics 365 Marketing Developer Guide) | Microsoft Docs

    The code snippet could be something like:

    MsCrmMkt.MsCrmFormLoader.on('formSubmit', function (event) {

    var verifyEmail = document.getElementById('xxxxxxxxxxxxxxxxxxx').value;

    if (verifyEmail == xxxxxx) {
    event.preventDefault();
    alert("xxxxxxxxxxxxxxx");
    }

    });

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 214 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 76

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans