Help with conditions (using the same actions in multiple conditions)

  • Profile Image
    LRG
    Asked on April 12, 2013 at 04:13 PM

    I'm having trouble with my form (here's an example with the problem: http://jotformpro.com/form/31016095608955)

    From my understanding, you can not use the "Show x field" in more than one condition, or else that field won't show up exactly when you want it to.  Here is what I want:

    Condition A: 
    Rule:  Box "Option 1" is checked and "Option 2" is not
    Action:  Show "1" and "JUST 1"

    Condition B:
    Rule:  Box "Option 2" is checked and "Option 1" is not
    Action:  Show "2" and "JUST 2"

    Condition C: 
    Rule:  Both "Option 1" AND "Option 2" are checked
    Action:  Show "1", "2", AND "BOTH 1&2"

     

    Now, the latter part of each action works fine, because the action to show "JUST 1", "JUST 2", and "BOTH 1&2" are only used once each. 

    The action to show fields "1" and "2", however are each used twice.  As a result, only one of the above conditions will be met correctly (in this case it's Condition C -- Conditions A & B don't show anything from the former part of the action).

    Anyone know how to work this out?

    Thanks a ton in advance.

  • Profile Image
    pinoytech
    Answered on April 12, 2013 at 04:46 PM

    Hi,

    I've clone your form and made some workaround. http://www.jotformpro.com/form/31016578482961

     

    If "Option" field "Equals To" "Option 1"

    If "Option" field "Equals To" "Option 2"

    If "All" of these conditions are matched

    Then "Show" "BOTH 1&2" field

    ---------------------------

    If "Option" field "Equals To" "Option 1"

    Then "Show" "1" field

    Then "Show" "Just 1" field

    -------------------

    If "Option" field "Equals To" "Option 2"

    Then "Show" "2" field

    Then "Show" "Just 2" field

    If you need further assistance, do let us know.

    Thank you!

     

  • Profile Image
    LRG
    Answered on April 12, 2013 at 04:50 PM

    This doesn't work like I want it to. 

    In yours, when both "Option 1" AND "Option 2" are selected, it shows "JUST 1", "JUST 2", AND "BOTH1&2". 

    I need it to ONLY show "BOTH 1&2" when both "Option 1" AND "Option 2" are checked.  "JUST 1" and "JUST 2" should not appear when they are both checked.

  • Profile Image
    Mike_T
    Answered on April 12, 2013 at 05:59 PM

    I was not able to write a work around. We will check it further and get back to you. Thank you.

  • Profile Image
    jonathan
    Answered on April 12, 2013 at 06:10 PM

    @LRG

    Please test this form http://www.jotformpro.com/form/31016478726961

    Is this how you wanted it?

    You can also clone the form, should you need to review its conditions setup. Use this guide to clone.

    http://www.jotform.com/help/42-How-to-clone-an-existing-form-from-a-URL

     

    Thanks.

  • Profile Image
    LRG
    Answered on April 12, 2013 at 06:20 PM

    Thanks, but still not what I need.  The problem on that one is that when both "Option 1" AND "Option 2" are checked, it doesn't show "1" or "2" (it needs to show both "1" AND "2").

    If this is confusing here's what I need it to do in the end:

    If ONLY Option 1 is checked:  Show "1" and "JUST 1"

    If ONLY Option 2 is checked:  Show "2" and "JUST 2"

    If BOTH Option 1 AND 2 are checked:  Show "1" and "2" and "BOTH 1&2"

  • Profile Image
    jonathan
    Answered on April 12, 2013 at 07:20 PM

    Thank you for clarifying that further.

    BUT I think that would not work anymore if you meant to still use the same fields 1 and 2. 

    The form condition logic feature have such limitation of not being able repeat the action for the same rules. The limitation can be overcome by using a different field on the action

    If you test this form again http://www.jotformpro.com/form/31016478726961

    I was able to achieve the logic you want, but I had to used a new 1 and 2 field to condition 3.

    It is easier to manage also if you have the form's fields separately set(like what I did by adding newer field). The resulting submissions data are better split and identified also if done this way.

    Thanks.