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

    Conditional logic action with unexpected result

    Asked by jtbaxt on September 21, 2016 at 01:25 PM

    Hi, the form I have made with 7 numbered questions..

     

    https://www.jotform.com//?formID=62642272887465#

     

    I have used conditional logic to show/hide fields based upon responses to certain questions. The questions that show based upon the logic are labelled 2a / 3a / 4a / 4b

    I have also used conditional logic to hide all questions 2 through 7 if in question 1 the option '0' is selected.

    However, if any other option other than '0' is selected in question 1 then all hidden fields are displayed for all the other questions? This should happen should it? How would I skip 6 questions based on one response without showing all other hidden question?

    To see replicate the issue open the form and you'll see question 2a is hidden. Now in question #1 click '0' for the answer - you will see all questions skipped leaving the submit button.

    Now uncheck '0' and instead check '1'. Now all conditional fields are displayed including 2a - I dont have a logic programmed for that?

    Please advise, thank you.

     

    John

     

     

    JotForm hidden hide fields other option
  • Profile Image
    JotForm Support

    Answered by Jim_R on September 21, 2016 at 03:54 PM

    Hey John, conditions automatically do the other side of itself when you use the SHOW/HIDE condition. This means that if your setup is like this:

    IF thisField is FILLED THEN HIDE field1, field2, field3

    Then the form will automatically SHOW field1, field2, field3 if thisField is NOT FILLED

    Since you have this condition:

    It will automatically show all those hidden fields if 1. SALES CHANNELS IS NOT EQUAL TO 0

    (and this is how it works right now on your form)

    For us to better assist you, we need to further understand your workflow/logic on how you want your form to behave. For starters, I recommend you read our guide on Conditional Logic as it will greatly help you along the way: Smart-Forms-Using-Conditional-Logic 

    Here are 3 more related guides that will be very helpful as you start building your conditions:

    How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    Hide-or-Show-Multiple-Fields-at-Once

    Show-or-Hide-multiple-fields-at-once-using-form-collapse-tool

    Just give us a rough overview of how it should work and we can help you setup the conditions.