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

Notifications

Announcements

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
TAHER_El_Mehdi Profile Picture

TAHER_El_Mehdi 30

#3
Satyam Prakash Profile Picture

Satyam Prakash 24

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans