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

  • Profile Image
    runjitchandra
    Asked 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?

  • Profile Image
    Welvin
    Answered 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
    runjitchandra
    Answered 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
    zkhanseo
    Answered 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
    Welvin
    Answered 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