How to prevent marketo form submit with personal email id | Community
Skip to main content
Level 2
June 11, 2020
Solved

How to prevent marketo form submit with personal email id

  • June 11, 2020
  • 1 reply
  • 4443 views

Hi,

I have a requirement for how to prevent Marketo form submit with personal email id.

Please help me with the solution.

 

Regards,

Avinash

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by rakeshmandaloju-2

Hi Avinash,

Check this article - https://developers.marketo.com/blog/restrict-free-email-domains-on-form-fill-out/

 

Thanks,
RM

1 reply

rakeshmandaloju-2Accepted solution
Level 1
June 11, 2020
SanfordWhiteman
Level 10
June 11, 2020

Unfortunately, the code in that post is incorrect. It doesn't properly search case-insensitively for the domains and only on the right-hand-side of the email address.

 

You should use the code in this CodePen instead: MktoForms2 :: Multiple Email fields w/questionable validation (prefix only)

 

However, note that all such attempts are prone to false positives if you don't deliberately add every single (full) domain. For example, user@live.example.io will be blocked if you only look for the word "live" at the beginning of the domain. Same with user@outlook.example.corp  which could be a corporate Exchange server, not personal email.

 

Note 

Level 2
June 12, 2020

Thank you 🙂