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

    I want to insist that one of 2 fields is more than 0

    Asked by tracyalexander on April 26, 2017 at 01:14 AM

    I want to add a requirement that Number of Adult Memberships or Number of Child Memberships must be 1 before the user can submit.

    Can you please tell me how I do this.

    I have added a requirement that a field is shown with error text if both these fields show '0' but I think the user could still move on?

    Page URL:

  • Profile Image

    Answered by Ian on April 26, 2017 at 04:05 AM

    Following settings for both the fields should fix the issue

    Keeping 0 as default value bypasses the mandatory validation as 0 itself makes the field non blank and passes value 0 while submission

    Change the limit entry from 0 to 5 to 1 to 5


    Hope this helps.

  • Profile Image

    Answered by tracyalexander on April 26, 2017 at 06:02 AM

    Hi Ian

    Will this allow one of the fields (Adult or Child) to remain with no value or zero?

  • Profile Image
    JotForm Support

    Answered by Chriistian on April 26, 2017 at 07:00 AM

    Hi there,

    Currently, both fields are required. If I understand it correctly that at least only of these 2 fields in question is required, you can add the following conditions to your form.




    Please read more about Smart Forms Using Conditional Logic

    Let us know if you need further assistance.