Skip to main content
Jason_Scott
Level 4
July 22, 2014
Question

Only allow form to submit if email address domain matches?

  • July 22, 2014
  • 4 replies
  • 2904 views
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
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Josh_Hill13
Level 10
July 22, 2014
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"
July 22, 2014
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
July 22, 2014
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 2
October 9, 2015

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
July 24, 2014
Any other ideas or suggestions?

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

Thanks!