SOLVED

Re: How to prevent marketo form submit with personal email id

Go to solution
avinash1988
Level 1

How to prevent marketo form submit with personal email id

Hi,

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

Please help me with the solution.

 

Regards,

Avinash

Tags (2)
2 ACCEPTED SOLUTIONS

Accepted Solutions
rakeshmandaloju
Level 1

Re: How to prevent marketo form submit with personal email id

SanfordWhiteman
Level 10 - Community Moderator

Re: How to prevent marketo form submit with personal email id

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 

View solution in original post

4 REPLIES 4
rakeshmandaloju
Level 1

Re: How to prevent marketo form submit with personal email id

SanfordWhiteman
Level 10 - Community Moderator

Re: How to prevent marketo form submit with personal email id

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 

avinash1988
Level 1

Re: How to prevent marketo form submit with personal email id

Thank you 🙂

avinash1988
Level 1

Re: How to prevent marketo form submit with personal email id

Thank You 🙂