SOLVED

How to Restrict Free Email Domains on Form Fill Out in 2021

Go to solution
Brian_Horace
Level 2

Re: How to Restrict Free Email Domains on Form Fill Out in 2021

Was there ever a resolution to this one? I am having the same issue where once I correct the email it still wont submit unless I refresh the page. @SanfordWhiteman 

SanfordWhiteman
Level 10 - Community Moderator

Re: How to Restrict Free Email Domains on Form Fill Out in 2021

Well, if properly deployed as in the demo page there's no such issue. So you'd have to link to the URL where isn't working for you.

Brian_Horace
Level 2

Re: How to Restrict Free Email Domains on Form Fill Out in 2021

thanks @SanfordWhiteman for your reply, here is my staging site.

https://rambunctious-bettong-staging.cl-us-east-1.servd.dev/demo

 

username: fiscalnote

password: buildingblocks

SanfordWhiteman
Level 10 - Community Moderator

Re: How to Restrict Free Email Domains on Form Fill Out in 2021

In your case, because you don't have a validator stack, use

 mktoForm.submittable(true);

instead of

 mktoForm.submittable(originalSubmittable);

 

Brian_Horace
Level 2

Re: How to Restrict Free Email Domains on Form Fill Out in 2021

Could I possibly ask one more related question @SanfordWhiteman ? A few years ago we hired an agency to build us an area for gated assets. I can get the script to tell me that the email "should be a business email" but it still delivers the asset and I'm not sure why.

https://rambunctious-bettong-staging.cl-us-east-1.servd.dev/whitepapers/spot-policy-trends-influence...

 

username: fiscalnote
password: buildingblocks

SanfordWhiteman
Level 10 - Community Moderator

Re: How to Restrict Free Email Domains on Form Fill Out in 2021

Because they failed to account for onValidate chain in their code, setting submittable(true) no matter what else was running.

Brian_Horace
Level 2

Re: How to Restrict Free Email Domains on Form Fill Out in 2021

Thank you for this, it was uber helpful and we were able to get it to work.