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

    Conditions: Multiple possible values with commas

    Asked by Mareid on January 02, 2015 at 07:37 PM

    The directions say that multiple values of a condition can be separated with commas, but that did not work for me.  I had to use the logic if 1, or if 2 or if 3 then take this action.  You can see this on my form in the conditional for the dateString field where I wanted to put if <datestring field> begins 1,2,3,4 then 15, but when I look at the compiled version of the statement the condition(s) comes out as "1,2,3,4" instead of "1", "2", "3", "4", which I think would work.

     

    The field is designed to change the value in a second field to 15 if the month of the year is January, February, March, or April, and to 30 if it is any other month. 

    Page URL:
    http://www.jotform.com//?formID=50004671217141

    conditions multiple values commas multiple possible possible values contains
  • Profile Image
    JotForm Support

    Answered by Jan on January 03, 2015 at 12:13 PM

    Hello,

    I cloned your form and check the saved conditions and I saw that you are using the conditions "Starts with" and "Doesn't start with". Unfortunately, multiple values are not supported in those options. However, you can use the "Contains" condition because it supports multiple values with the use of commas.

    So the work around that you did is actually good. Hope this helps. Let us know if you have further questions.

    Thank you.