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 there a way to allow only even numbers?

    Asked by pictureperfectalbums on January 23, 2015 at 10:33 AM

    Hi,

     

    I need the user to only input even numbers. The options are too long to list in a dropdown list. 
    Can I check user input to only allow even numbers?

     

    Thank you.

    Page URL:
    http://www.jotform.com/?formID=50223720495248

    allow only dropdown list even number odd number
  • Profile Image

    Answered by Carina on January 23, 2015 at 11:57 AM

    Do you mean 11 digits instead?

    You can use the input mask:

    Or the max size property:

    You can test the form and mouse over the fields for more information:

    http://form.jotformpro.com/form/50224694262958? 

    Let us know if we can assist you further.  

  • Profile Image

    Answered by pictureperfectalbums on January 26, 2015 at 01:02 PM

    Hi,

    That's great to know but I meant even numbers as in 2, 4, 6, 8, etc... 

     

  • Profile Image
    JotForm Support

    Answered by Mike on January 26, 2015 at 02:53 PM

    I do not think that we have such fields with limited inputs, but it is possible to check if the value is even/odd using conditional logic on form.

    Example:

    Here we forward the value to the Even field if it ends with 0, 2, 4, 6 or 8.

    http://form.jotformpro.com/form/50255312602947

    Is this something that can be used on your form?

  • Profile Image

    Answered by pictureperfectalbums on January 26, 2015 at 03:10 PM

    Yep, that's perfect. 
    Thank you!