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

    How would I use conditional logic to validate a field based on a select

    Asked by dmoncrief on March 15, 2016 at 12:38 PM

    How would I use conditional logic to validate a field based on a selection of zip codes. I have over 200 zip codes.

    Will I have to create a if statement for each zip code?

    This is a re-post of a comment on How to Make Better Forms with Conditional Logic

  • Profile Image
    JotForm Support

    Answered by david on March 15, 2016 at 12:55 PM

    I believe you have multiple threads regarding the same question:



    Comma separated values do indeed work in conditions, however, as previously stated, I believe there is a rather low limit on the number of values that can be added.  If you are trying to add all 200 to a single condition, it will not work.  I believe the maximum is 10 per condition.  For your set up, you would likely need 20ish conditions with 10 zip codes per condition.