Only allow form to submit if email address domain matches?

Jason_Scott
Level 4

Only allow form to submit if email address domain matches?

Looking for some help.  I have a form 2.0 and I want to only allow "@gmail.com" email address.  How can I limit the email address?  Thank you
Tags (1)
5 REPLIES 5
Josh_Hill13
Level 10 - Champion Alumni

Re: Only allow form to submit if email address domain matches?

There are two ways:

1. Form Level - you will need some javascript to validate the email address. You *might* be able to do this with Masking and force @gmail.com

2. Campaign Level - block anyone from going through the campaign by saying

Fills Out Form X on Page Y and Email Address CONTAINS "@gmail.com"
Anonymous
Not applicable

Re: Only allow form to submit if email address domain matches?

I really like Josh's second suggestion, blocking at campaign level.

That would allow to collect leads' details.  There is always a possibility of someone using the personal address for professional interest. It is better to keep those leads partially engaged than trashing them in first place.

You can indeed use JavaScript to reject email addresses from specific domains.
Jason_Scott
Level 4

Re: Only allow form to submit if email address domain matches?

Thanks for the replies.  In this instance we need to only allow form submissions from a specific email address.
 
Breno - I took a look at the link you suggested however I've been unable to get it to work.  Do you know of anyone with this implemented?  This should work on a 2.0 form, correct?
Carrie_Thomas1
Level 1

Re: Only allow form to submit if email address domain matches?

how did you do this?  I want to stop certain things from being submitted as well.  trying to explore masking but haven't figured it out yet.

Jason_Scott
Level 4

Re: Only allow form to submit if email address domain matches?

Any other ideas or suggestions?

Does anyone have a live example they would be willing to share?

Thanks!