Is there a way to allow only even numbers?

  • pictureperfectalbums
    Asked 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.

  • Carina
    Replied on January 23, 2015 at 11:57 AM

    Do you mean 11 digits instead?

    You can use the input mask:

    Is there a way to allow only even numbers?  Image 1 Screenshot 30

    Or the max size property:

    Is there a way to allow only even numbers?  Image 2 Screenshot 41

    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.  

  • pictureperfectalbums
    Replied on January 26, 2015 at 1:02 PM

    Hi,

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

     

  • Mike
    Replied on January 26, 2015 at 2: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:

    Is there a way to allow only even numbers?  Image 1 Screenshot 40

    Is there a way to allow only even numbers?  Image 2 Screenshot 51

    Is there a way to allow only even numbers?  Image 3 Screenshot 62

    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?

  • pictureperfectalbums
    Replied on January 26, 2015 at 3:10 PM

    Yep, that's perfect. 
    Thank you!