Issue with number field and conditional logic?

  • howiek
    Asked on February 5, 2018 at 12:15 PM

    Using the 1 question per page format on a numeric field, when you use the up/down arrows to select a value using it in conditional logic it seems to fail.

    If you look at my form https://form.jotform.com/80314735502146 on the "number of passengers" field the conditional logic does not work well using the arrows, however when you input the number it works fine. Please test it using the number 9, once by input from the keyboard then once using the up and down arrows. Please do this using new forms each time.

    Thank you,

  • David JotForm Support
    Replied on February 5, 2018 at 12:50 PM

    I checked the number field when using the up/down arrows on my keyboard and the cinditions were triggering as expected.  I was also able to get the conditions to work in my own form.  Are the conditions associated with the number field still not triggering on your end?  If so, try a different browser to see if the issue persists.  I was testing in FireFox and all seems to be functional.

  • howiek
    Replied on February 5, 2018 at 1:08 PM

    I am using Chrome and yes it still does occur. User will be using what ever browser they desire, therefore it must work across all browsers. Can I disable the arrows? Please provide a solution, since I cannot have the logic not work.

    Thank you

  • David JotForm Support
    Replied on February 5, 2018 at 1:32 PM

    The issue appears to be multiple conditions overlapping.  Make sure your conditions are only showing or hiding a field in one instance.  For example, all of your conditions that refer to the number field being less that 8 will trigger if the value is less than 8.  The conditions for less than 3, less than 2, 3, 4 ,5 ,6, 7, will all trigger if the value is 8.  This will attempt to show and or hide the same fields multiple times.  The greater than 2 condition will trigger even if the value is 30. 

    My recommendation would be to set up your conditions using equal to, instead of greater than less than conditions.

    If equal to 1, show fields for the first entry.
    If equal to 2, show fields for first and second entry.
    If equal to 3, show fields for first, second and third entry.



  • howiek
    Replied on February 5, 2018 at 2:25 PM

    That seemed to correct the issue. Thank you very much.