Disallowing negative numbers via conditions doesn't work every time.

  • Patrick_Lynch
    Asked on November 8, 2019 at 7:11 PM

    Hi there! I have seen a couple of posts about preventing negative numbers in a form. 


    This option (https://www.jotform.com/answers/1393918-How-can-I-make-sure-that-one-cannot-enter-negative-values-in-a-number-field-dropdown) only works for a numbers field. I am using an Input Table which doesn't provide me that option. 

    Using conditional logic is what I am currently doing, but I think I found a bug. (Hoping it can be replicated with the link to my form)

    I have if field 1 is less than zero hide field 2. Which works until a number greater than zero is entered and then the scroll wheel can scroll down to negative numbers. 

  • jherwin
    Replied on November 9, 2019 at 1:24 AM

    1.) In my understanding, you want to disable the input of negative numbers to your input table, right? Well, it does not have the same option as the number field, but you can hide the submit button and display a warning message using conditional logic like the one you have in your form now.

    Can you explain further how you want the form to work so we can check a workaround for your needs?

    2.) And you mentioned that scrolling up and down in the mouse can be used to increase and decrease the inputted number.

    I tested this on my end, but I was not able to replicate the issue you mentioned. Is there any way you can take a short clip of the problem? That would help us troubleshoot this for you.