Multiple Conditions with Multiple Actions

  • Profile Image
    lngearhart57
    Asked on February 26, 2013 at 03:03 PM

    When setting up my conditions, the first condition with multiple actions works, but as I add new conditions, only the most recent one works. Is there a trick?

  • Profile Image
    lngearhart57
    Answered on February 26, 2013 at 04:26 PM

    Any advise?

  • Profile Image
    ardy0689
    Answered on February 26, 2013 at 05:15 PM

    Hello Ingearhart57, we are sorry for the inconvenience, I have recreated the problem and you are right it does not work for old conditions and recent conditions that take same fields as the action will make the old ones useless. I will forward this to our development team to fix this. They will reply to this thread if they have an update. Thanks

  • Profile Image
    lngearhart57
    Answered on February 27, 2013 at 08:37 AM

    Is there any possibility this will be fixed soon? Maybe by Friday? :)

  • Profile Image
    Welvin
    Answered on February 27, 2013 at 09:10 AM

    Hi,

    This thread is already forwarded to our developers and already been asssigned. We can't disclose any timeframe but we'll surely let you know if updates will be made on this particular issue.

    Do you have long set or a bunch of condition? How about re-creating them again?

     

    Thanks

  • Profile Image
    lngearhart57
    Answered on February 27, 2013 at 09:24 AM

    Its a long string of actions, and the same actions repeat for other conditions. If I re-create the condition is will just deactive the last one I created. Only the most recently created rule is working.

    For Ex:

    Rule1
    If <field> = "Brochure"
    Then HIDE <field1>
    Then HIDE <field2>
    Then HIDE <field6>
    Then HIDE <field9> 

    Rule2
    If <field> = "Logo"
    Then HIDE <field1>
    Then HIDE <field2>
    Then HIDE <field3>
    Then HIDE <field5> 

    There is a long string of these actions for each rule (but the actions for each rule are slightly different).
    So if I create Rule 1 first it will work in preview. Then once I create Rule 2, it deactivates Rule 1, but Rule 2 works. 

  • Profile Image
    abajan
    Answered on February 27, 2013 at 10:15 AM

    Considering that you're on a deadline, I'll look into this to see if I can come up with a workaround for you.

    For what it's worth, experience has taught me that in most cases it's better to use SHOW conditions than HIDE ones. One benefit is that the field or fields to be hidden are not shown by default (when the form loads). For instance, the first condition in your form is set to hide the Existing Project Name field when the Revision To Existing Project field equals to No. Currently, the field is shown when the form loads and only becomes hidden when No is selected. Another advantage is that it's much easier to setup the condition. That's because once a SHOW condition is set on a field, it will be hidden until that condition and/or another condition to SHOW it is met. For example, if you have a condition to show field x when y is selected, x will be hidden under all other circumstances.

    Also, there's something about the Revision To Existing Project field that definitely needs your attention: Radio buttons should have been used instead of check boxes because currently a user can choose both Yes and No! (Please see this article.)

    I'll see what solution I can devise for your form.

  • Profile Image
    lngearhart57
    Answered on February 27, 2013 at 11:56 AM

    Thank you so much! I will look into switching actions to "Show" and revise appropriate field types. Still a work-in-progress.

  • Profile Image
    lngearhart57
    Answered on February 27, 2013 at 04:00 PM

    I've adjusted the "Revision to existing project" rule and moved the "Existing project name" field in between (2) form collapses properties set to Open/Hidden. This works for this field, however I moved the rest of my fields into a seperate form collapse so I can adjust the rest of my rules to "Show" fields rather than "Hide" them, however its not hiding the fields in form collapse, even though the settings are the same as the "Existing Project Name" collapse which is functioning properly. Is this part of the same bug thats affecting my earlier issues?

  • Profile Image
    jonathan
    Answered on February 27, 2013 at 09:06 PM

    ...however its not hiding the fields in form collapse, even though the settings are the same as the "Existing Project Name" collapse which is functioning properly.

    Hi,

    Can you please give us a break down of the rules of what you wanted to hide/show on the form. We will assist you apply the appropriate condition logic on the form

    I check your form and found a lot of conditions that are repeatedly used i.e. the Finish Width Field ,

    You can use the collapse field to show/hide multiple fields at once (so you do not have to repeat them) (see guide: How-to-Hide-or-Show-Multiple-Fields-at-Once-Based-On-a-Single-Conditional-Entry)

    Also, a good strategy when doing complex conditions is to do it one at a time... like, add 1 condition and test, if OK add another then test again.. until all are completed.

    Thanks.

  • Profile Image
    lngearhart57
    Answered on February 28, 2013 at 09:12 AM

    That is the issue Jonathan. The developers are working on solving an issue that's not allowing me to test each condition once completed. Since the same actions apply for multiple conditions, only the most recent condition is functioning. I was told they are working on a solution.
    I would attempt to put the fields that are used more often into grouped field collapses but a lot of the time the fields are used individually. For example, I don't want to show/hide "Quantity" "Fold Type" and "Intended Use" as a group. They all apply to each different condition singularly. Some conditions will show "Quantity" but not "Fold Type" So I haven't placed them in a form collapse in smaller groups. Typically i want to pick and choose single fields out of my total 46 fields for each condition. That seems to be harder than expected. I've posted screenshots of the conditions setup for "Exterior Store Sign" and "Ad."

    http://www.filedropper.com/exteriorstoresigncondition

    http://www.filedropper.com/adcondition 
  • Profile Image
    EduardoMendez
    Answered on February 28, 2013 at 09:55 AM

    Hi there, 

    Here is a clone of your form:

    http://form.jotformpro.com/form/30583735504959?

    I have numbered all your fields for easy reference.

    We'll be glad to test a solution that works for you, however, it may be best to start from scratch.  Can you please let us know what fields you would like to show with what conditions?

    Example.

    if 1 = X then show 12 13 14 15

    This way we can try applying the conditions using a number of variations.

    We'll wait for your response!

  • Profile Image
    lngearhart57
    Answered on February 28, 2013 at 02:51 PM

    Thanks! I really appreciate it!

    Fields 1-11 can be static (no conditions)

    If Field 12 = "yes" then show 13
    If Field 14 = "Ad" "Sheetz Logo Ad" or "Dasherboard Ad" (if ANY) then show 22, 23, 27, 28, 29
    If Field 14 = "Multimedia" then show 15, 22, 23, 35, 36, 37
    If Field 14 = "Event" then show 16, 17, 22, 23, 24, 27, 31, 35, 36, 37
    If Field 14 = "Packaging" then show 18, 22, 23, 35, 36, 37, 44
    If Field 14 = "Exterior Store Sign" then show 19, 24, 30, 31, 32, 33, 34, 38, 39, 40, 41, 42, 43
    If Field 14 = "Interior Store Sign" then show 20, 24, 30, 31, 32, 33, 34, 38, 39, 40, 41, 42, 43
    If Field 14 = "Brochure" then show 22, 23, 24, 25, 27, 30, 31, 32, 33, 34, 35, 36, 37
    If Field 14 = "Direct Mail" then show 22, 23, 24, 27, 30, 31, 32, 35, 36, 37
    If Field 14 = "Coupon" then show 22, 23, 24, 27, 30, 31, 32, 33, 34, 35, 36, 38, 39, 40, 41, 42, 43
    If Field 14 = "Flyer" then show 22, 23, 24, 27, 30, 31, 32, 33, 35, 36, 37
    If Field 14 = "Banner" then show 22, 23, 24, 27, 30, 31, 32, 33, 35, 36, 37
    If Field 14 = "Logo" then show 26, 27, 28, 29, 35, 36, 37
    If Field 14 = "Job Aid" then show 22, 23, 24, 27, 30, 31, 32, 33, 34, 35, 36, 37
    If Field 14 = "Other" then show 22, 23, 24, 27, 30, 31, 32, 33, 34, 35, 36, 37
    If Field 14 = "Presentation Check" then show 22, 23, 24, 31, 37
    If Field 14 = "Apparel" then show 21, 24, 27, 31, 35, 36, 37 

  • Profile Image
    EduardoMendez
    Answered on March 01, 2013 at 06:49 AM

    Hi there, 

    Please test this clone of your form:

    http://form.jotformpro.com/form/30583735504959?

    I changed the logic in that in stead of parting from what is selected, I based myself on each field and when it should show.

    This way, only one condition is applied to a particular field at any given time.  It seems that when you have more then one condition applied to a field, the latest condition overides any of the preseding conditions.

    So, this is what my chart looked like (based on your last response):

    Show 13 if 12=yes

    Show 15 if 14 = Multimedia

    Show 16/17 if 14 = Event

    Show 18 if 14 = Packing

    Show 19 if 14 = Exterior Store Sign

    Show 20 if 14 = Interior Store Sign

    Show 21 if 14 = Apparel

    Show 22 if 14 = Presentation Check / Other / Job Aid / Banner / Flyer / Coupon / Direct Mail / Brochure / Packing / Event / Multimedia / Ad / Sheetz Logo Ad / Dashboard Ad

    Show 23 if 22 = filled

    Show 24 if 14 = Apparel/Other/Job Aid/Banner/Flyer/Coupon/Direct Mail/Brouchure/Interior Store Sign/Exterior Store Sign/Event

    Show 25 if 14 = Brochure

    Show 26 if 14= Logo

    Show 27 if 14=Apparel/Other/Job Aid/Logo/Banner/Flyer/Coupon/Direct Mail/Brochure/Event/Ad/Sheetz Logo Ad/Dashboard Ad

    Show 28/29 if 14=Logo/Ad/Sheetz Logo Ad/Dashboard Ad

    Show 30 if 14= Other/Job Aid/Banner/Flyer/Coupon/Direct Mail/Brochure/Interior Store Design/Exterior Store Design 

    Show 31 if 14=Apparel/Other/JobAid/Banner/Flyer/Coupon/Direct Mail/Brochure/Interior Store Design/Exterior Sotre Design

    Show 32 if 14=Other/Joub Aid/Banner/Flyer/Coupon/Brochure/Direct Mail/Interior Store Design/Ext Store Design/

    Show 33 if 14=Other/Joub Aid/Banner/Flyer/Coupon/Brochure/Interior Store Design/Ext Store Design/

    Show 34 if 14=Other/Joub Aid/Flyer/Coupon/Brochure/Interior Store Design/Ext Store Design/

    Show 35/36 if 14=Apparel/Other/Joub Aid/Logo/Banner/Flyer/Coupon/Direct Mail/Brochure/Packing/Event/Mutimedia/

    Show 37 if 14=Apparel/Presentation/Other/Job Aid/Logo/Banner/Flyer/Direct Mail/Brochure/Event/Multimedia

    Show 38/39/40/41/42/43 if 14=Coupon/Interior Store Design/Ext Store Design/

    Show 44 if 14= PAcking

    I hope that helps!

  • Profile Image
    lngearhart57
    Answered on March 01, 2013 at 09:56 AM

    This is working really well! Thank you!
    I've found a few fields that are displaying when they shouldn't or visa-versa, however that should be a quick fix. When I go to revise my form how do I reverse the logic with the conditions wizard? It looks like I have to choose the "If" rule before I choose the action "Show."

  • Profile Image
    lngearhart57
    Answered on March 01, 2013 at 10:38 AM

    Nevermind, I think I understand now. I'll reverse the logic and post my findings after.
    Thanks again for all the help! 

  • Profile Image
    EduardoMendez
    Answered on March 01, 2013 at 10:45 AM

    You can clone my sample form and use it as your own if you wish.

    Here is a guide to help you with that:

    http://www.jotform.com/help/28-Cloning-a-Form-from-a-Web-Page

    Here is the form:

    http://form.jotformpro.com/form/30583735504959?

  • Profile Image
    lngearhart57
    Answered on March 01, 2013 at 01:47 PM

    Instead of cloning I wanted to make sure I understood how to build it, since I'm sure there will be more forms in my future.
    I did reverse all the logic on my own and the form is working wonderfully now.
    Thanks again for all the help from the various support staff! 

  • Profile Image
    EduardoMendez
    Answered on March 01, 2013 at 01:55 PM

    Anytime!

  • Profile Image
    fbtme
    Answered on March 08, 2013 at 06:25 AM

    Hi there, just wanted to share my solution to a similar problem I had. Hopefully it will save you some time, as it took me a couple of hours to figure out!!!!

    Couple of things you have to remember:

    - As soon as you put a SHOW condition on a field, it will HIDE automatically when that condition is not met. (So don't bother adding the field as a Hidden box from the Power tools, this is the wrong approach)

    - Only ONE condition can be added to a field, as soon as you include a field into multiple conditions it wont behave correctly.

    - Start with the SHOW condition of your field and work out the rules that apply to this, so sort of work backwards. 

    Thanks to the JotForm team for such an awesome web app!!!