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

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

    Asked by saurabhhtml on February 08, 2017 at 12:42 AM
  • Profile Image
    JotForm Support

    Answered by owen 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.