Is there a way to allow only even numbers?

  • Profile Image
    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.

  • Profile Image
    Carina
    Answered 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
    pictureperfectalbums
    Answered 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
    Mike
    Answered 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
    pictureperfectalbums
    Answered on January 26, 2015 at 03:10 PM

    Yep, that's perfect. 
    Thank you!