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

    Can we make validation for field which will not accept negative values ?

    Asked by Abhilash12 on July 27, 2016 at 12:03 PM
    validation negative value conditions input mask
  • Profile Image
    JotForm Support

    Answered by Jim_R on July 27, 2016 at 01:11 PM

    You have 2 options to choose from:

    1. Use Conditional Logic - IF its VALUE is LESS THAN 0, THEN do something (e.g. hide the submit button, show an error, etc.)

    Here's how I setup the Condition:

    Here's a related guide on how to setup Conditional Logic [GUIDE: Smart-Forms-Using-Conditional-Logic] 

    2. Use Input Mask - This will only be applicable if you know the number of digits of the field in question beforehand (e.g. your field only requires 2 digits - 23, 56, and so on). You may then set the Input Mask of the field to ## so it only accepts 2 numbers (no negative sign prefix).

    Here's a related guide on how to setup Input Masks [GUIDE: Getting-Started-with-the-basics-of-Input-Masking] 

    This is a demo form https://jotform.com/62084737125961 showing both approaches. Feel free to clone it so you can see how the condition and input mask were setup [GUIDE: How-to-clone-an-existing-form-from-a-URL] 

    I highly recommend you take a peek at the links I included on this thread. Give it a whirl and if you're stuck on something, let us know we can further help.