How do I put validation using regular expression, I have number field and want to submit only selected numbers?

  • Profile Image
    saurabhhtml
    Asked on February 08, 2017 at 12:42 AM
  • Profile Image
    owen
    Answered on February 08, 2017 at 02:15 AM

    Hi,

    I guess you'd like to accept only specific numbers on a number field you have. You can do this by using conditional logic. Please see this test form of mine:

    https://form.jotform.com/70380740600951

    Please see my condition on it:

    If the number field is not equal to one of 1 or 2 "Name" field gets disabled and you can not submit the form since the field is required. There should be some other ways of doing this as well.

    I hope this helps. 

    Please contact us again if you need any further assistance.