How to deal with multiple conditions?

  • sarahahmad
    Asked on August 18, 2016 at 6:45 AM
  • BJoanna
    Replied on August 18, 2016 at 9:29 AM

    Inside of this guide you can find how to hide or show multiple fields with conditional logic:

    https://www.jotform.com/help/196-Hide-or-Show-Multiple-Fields-at-Once 

    More about conditional logic you can find here:

    Smart Forms Using Conditional Logic

    If you have some issues with conditional logic inside of your form, please provide us ID of your form and tell us what you are trying to achieve.

    Let us know if you need further assistance. 

  • sarahahmad
    Replied on August 18, 2016 at 9:47 AM

    Hi, I've already seen these threads. But issue in my situation is that I've to add almost 55 * 3 combinations that I dont want to. 

    I want something like this if ( section 1 ?= 2yes) show section 1 result.

    if ( section 2 ?= 2yes) show section 2 result.

    if ( section 3 ?= 2yes) show section 3 result. 

    Thanks

  • BJoanna
    Replied on August 18, 2016 at 11:28 AM

    I assume that you are working on this form https://www.jotform.com/62297940692467.

    I have inspected conditions inside of your form and you can show sections 1,2 and 3 with only three conditions. However to achieve that you would also need to assign calculation values to all of your radio button fields that have options yes and no. You can set that yes is 1 and no is 0.

    How to deal with multiple conditions? Image 1 Screenshot 40

     

    Then you would need to add three Form Calculation widgets, one for each section on your form. Then perform calculation for radio button fields of each section. 

    How to Perform Calculation in the Form?

    How to deal with multiple conditions? Image 2 Screenshot 51

    Finally you need to set conditional logic based on calculation from Form calculation widgets.

    How to deal with multiple conditions? Image 3 Screenshot 62

    You can also hide calculation fields from your form, so that your users can not see them.

    I have cloned your form and I made demo form, with mentioned changes. Here is my form:

    https://form.jotform.com/62304113421943 

    Feel free to clone it.

    Hope this will help. Let us know if you need further assistance.