On several landing pages, I would like to prevent personal email addresses (yahoo, gmail, hotmail etc.) from being filled out on the form.
Initially, I thought I could edit some rules in the form, but this seems to be impossible. I do not want to edit my template, as it would effect all my landing pages.
Does anyone know how to ensure that only on a few landing pages, I "forbid" email addresses containing a certain domain name from being entered?
I found another discussion in the Marketo community referring to a certain HTML script, which should work. Unfortunately, I cannot get it to function properly.
Appreciate all the help!
Yes I did! This is the HTML script I tried, but it does not work. Furthermore, the article is about 2 years old, so perhaps outdated?
I'm hoping for new information that could help me.
That should still work...is this an embedded form on an external webpage? Or are you using a Marketo landing page?
Should it also work on a Marketo landing page? And if so, would you know where to implement it?
A MktoForms2.whenReady listener works on Marketo or non-Marketo pages.
Please link to your URL so we can troubleshoot actual code.
Is there a way to get the code http://developers.marketo.com/blog/restrict-free-email-domains-on-form-fill-out/ to work for Alternate Email Address field on my form too?
You can find better code by searching the Community, and I can help you adapt it to check multiple email-type fields.
Danielle Chan without in any way retracting my critique of that old code, here's how you'd use it for multiple email fields: MktoForms2 :: Multiple Email fields w/questionable validation
Again, though, not really the complete/correct way to match freemail domains.