How can I exclude a range of email domains?

  • Profile Image
    pro2colgroup
    Asked on January 03, 2017 at 12:30 PM

    Hi there,

    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.

    Thanks

    James

  • Profile Image
    Jan
    Answered on January 03, 2017 at 02:20 PM

    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.

    Please check this demo form: https://form.jotform.com/70025981054957. You can clone it if you like to.

    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.

  • Profile Image
    pro2colgroup
    Answered on January 03, 2017 at 05:40 PM

    Hi Jan,

    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?

    Cheers, James

  • Profile Image
    liyam
    Answered on January 04, 2017 at 12:15 AM

    Hello James,

    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.