What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How can I exclude a range of email domains?Asked by pro2colgroup on January 03, 2017 at 12:30 PM
I want to be able to exclude a number of email domains, not just the free ones that you have listed. How can I create a blacklist of emails that a user submitting on my form must not use?
I see that this question/feature has been posted many times over the years - I hope that you now have this available.
My understanding is that you want to block certain email domains. If that is correct, I would suggest you to use a condition wherein if the email contains @gmail.com, the submit button and the other fields will be hidden.
This demo form has a condition wherein if the email address entered in the field contains @gmail.com, @hotmail.com, @icloud.com then the Name, Phone Number and submit button fields will disappear.
Here's the result:
Hope that helps. Thank you.
Whilst I can see that this works it doesn't look very professional and isn't something I'd want to implement on our site. Is there not a way of popping up a message to say 'that domain is not allowed'? Or something similar?
There is no option to run a pop-up on the form once an error appears. So the best solution I could think of is by showing a text which you can further modify it's layout to make it look better, and hide the submit button in order to prevent the person from pressing submit.
Here's a sample of the form with the function described: https://form.jotform.com/70025981054957
If you think you would like this concept or if you have something else in mind, please let us know.