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.


  • Profile Image

    Is it possible to have the email field validate for a specific type of email address

    Asked by runjitchandra on January 09, 2014 at 09:55 AM

    We are trying to have only Government employees use the form, and having a valid .gov email address is the best way to do this. Is that possible?

    email validate government and
  • Profile Image
    JotForm Support

    Answered by Welvin on January 09, 2014 at 11:40 AM

    Hi,

    Unfortunately, not in our form builder. You can only use general email validation such as when you use our Email field. There have been a few solution around the web for this specific type of validation but didn't try it before. Will try to come up for a possible solution and get back to you. No time guaranteed for this since this is custom workaround :)

    Thanks

  • Profile Image

    Answered by runjitchandra on January 09, 2014 at 11:42 AM

    If you can do it, it would be great, but take your time. I am sure that this a feature that a lot of people would like. Get it right the first time. :-D

  • Profile Image

    Answered by zkhanseo on January 09, 2014 at 12:17 PM

    Hi,

      Yes, by using the conditions option, you can check whether the email address field contains particular string or not. By using this you can customize your form's action.

      Also you can block the non official email service providers such as GMAIL,YAHOO,AOL,MSN etc.. by setting "Disallow Free Addresses" to YES in email address field properties.

     

     you may use this for creating a condition.

    http://s14.postimg.org/q6spfilht/IMG_09012014_221840.png

     

    http://s14.postimg.org/p38l3k0up/IMG_09012014_221913.png

     

     http://form.jotform.co/form/40074344378859

    Here if the email address contains .gov and it is valid one then the submit field will be displayed

    Thanks

  • Profile Image
    JotForm Support

    Answered by Welvin on January 09, 2014 at 12:34 PM

    Wow! That's smart way @zkhanseo. I didn't think of that, was missing that method. Thanks for the heads up. That's greatly appreciated. 

    Only that, I would suggest using the conditional logic as <ends with> rule then <show> action method:

    Example Form: http://www.jotformpro.com/form/40084173082953.

    Thanks