conditional logic problem when using multiple form collapses

  • sfdc
    Asked on January 18, 2016 at 8:33 PM

    I've been trying to set up a registration form that has a series of form collapses, so if a second camper is to be registered, it will open up another section of fields to enter the 2nd camper's info, then a 3rd camper, etc. - up to 4 campers. But whenever I change the conditional logic for one of the form collapses it automatically changes the logic on all the other form collapses to be the same! I don't want that, because then the progression won't work. Why is this happening?

    https://www.jotform.com//?formID=60154695539161

     

  • Elton Support Team Lead
    Replied on January 19, 2016 at 4:11 AM

    Hello,

    I got it to work on a cloned version of your form https://form.jotform.com/60182299639971. Not sure about the problem you're facing. Kindly note that on the condition wizard, when creating rules (IF condition), not all fields are shown on the drop down simply because they can't be used as the rule condition.

    Here are the conditions on this form.

    conditional logic problem when using multiple form collapses Image 1 Screenshot 20

    I suggest to clone this form so you can view the conditions.

    Hope this helps!

  • sfdc
    Replied on January 19, 2016 at 6:50 AM

    Hi Elton, I get a message that says the form at that link is unavailable.

  • Elton Support Team Lead
    Replied on January 19, 2016 at 7:34 AM

    Not sure what happened on that form but here's another one https://form.jotform.com/60183632621954

    You can also set the collapse open by default if you want the fields to automatically appear once it's shown.

    conditional logic problem when using multiple form collapses Image 1 Screenshot 20

  • sfdc
    Replied on January 19, 2016 at 7:45 AM
    Thank you Elton, this one seems to work. What did you change to make it
    work properly?
    ...
  • Elton Support Team Lead
    Replied on January 19, 2016 at 8:57 AM

    It's easy.

    Since you already have 1 existing condition on that form, I just duplicated it and then edited it accordingly. Since there are multiple "Add another camper fields?" in your form, make sure to browse the appropriate one on the conditions list.

    So for condition 1. Please take note on the numbers, they are sorted according to your form.

    conditional logic problem when using multiple form collapses Image 1 Screenshot 50

    Condition 2:

    conditional logic problem when using multiple form collapses Image 2 Screenshot 61

    Condition 3:

    conditional logic problem when using multiple form collapses Image 3 Screenshot 72

     

    I also set the last collapse field's visibility to hidden and status to open. This will serve as the blocker, so the fields under it will be shown by default.

    conditional logic problem when using multiple form collapses Image 4 Screenshot 83

    Hope this helps!