Can you help me check if this format creates a conflict when using the "any" option

  • josephriba
    Asked on November 13, 2019 at 7:52 PM

    Hi,


    I have a attached a picture of a condition.


    I have grouped two conditions together and my expectation is that this does not create a conflict although I can see that it might if they were not grouped.


    The conditions say if "any" of the following is true then show 115


    If 113 = Yes then show 115

    If 112 = Yes then show 115.


    I use the "If any of the "if" rules are matched"


    I have set out a screen shot of the condition for you to check.


    Is it necessary to write this instead as follows?  :



    If 112 = Yes then show 115.

    If 112 = No and 113 = Yes then show 115



    Please let me know.


    Thank you for your help

    Jotform Thread 2039905 Screenshot
  • David JotForm Support Manager
    Replied on November 13, 2019 at 11:21 PM

    Thank you for contacting us. The "If any" means that if any of those two fields is equal to "Yes", the field #115 will be shown.

    If you want to show field #115 only if both of those fields are equal to "Yes", then use "If All". 

    Let us know if you need more help.

  • josephriba
    Replied on November 14, 2019 at 1:53 AM

    I understand what you have said however I am asking if there is a conflict.


    I have been told by jotform that the following wording creates a conflict


    1. If 113 = Yes then show 115

    2. If 112 = Yes then show 115.


    The conflict is because the first condition can also be read as " If 113 does not equal yes then hide 115.  Therefore 115 may be both simultaneously be told to hide and to show if the answer to 113 is "NO" and the answer to 112 is "Yes".


    I assume you agree with this?


  • josephriba
    Replied on November 14, 2019 at 2:02 AM

    Can you please tell me if this condition creates a conflict.

    I have sent a screen shot.  

    I hope you understand my question.

    My form is very large and any conflicts slow it down greatly.

    Thank you for your help.

    1573714931Screen Shot 2019 11 14 at 4 Screenshot 10

  • Girish JotForm Support
    Replied on November 14, 2019 at 6:11 AM

    Regarding your first query, yes, it can create a conflict. So change the condition to "ALL" instead of  "ANY".

    For your second query and the screenshot, I think the first condition would not be required as it creates a conflict.

  • josephriba
    Replied on November 14, 2019 at 6:49 PM

    Hi Gerard,

    Thank you for your answer. Regarding my first query we both agree that there could be a conflict if the conditions are written separately.

    My original question is:

    If the these conditions are written into the same condition as below is there still a conflict.  I believe that you are saying that this is a conflict even in the below arrangement.

    1573775083Screen Shot 2019 11 14 at 10 Screenshot 10

    I can't think of a way to use the "any" condition if this is not acceptable.  Can you please help me understand where the "any" condition can be used without a conflict.  

    I need to know this as I have many conditions like this and I am going to change all of them.

    I cannot simply change "any" to "all" as the logic of the form will then no longer work.

    Thank you for your patience and time.

    Regards

    Joe



  • Girish JotForm Support
    Replied on November 14, 2019 at 7:52 PM

    Sorry may be I got confused earlier.

    Ok,let me understand this condition.

    As per the condition, If either Qn 113 or Qn 112 is YES, then show Qn 115. This mean that if anyone Qn is No, then Qn 115 will be shown. That is how the condition should work. Is that correct?

    But additionally, when both are YES, then also the Qn 115 will be shown since the condition looks for one value to be NO and other value to be YES.

    Scenarios:

    Qn 113 =  YES, Qn 112 = NO -----> Qn 115 will be shown

    Qn 113 = NO, Qn 112 = YES -----> Qn 115 will be shown

    Qn 113 = YES, Qn 112 = YES -----> Qn 115 will be shown

    Qn 113 = NO, Qn 112 = NO -----> Qn 115 will not be shown

    See an example below:

    1573779011screencast1511 1 Screenshot 10

    Hope this helps.

  • josephriba
    Replied on November 14, 2019 at 8:02 PM

    In relation to the screen shot below my understanding is that there is no conflict. I cannot change the condition because the form will not work as it needs to if I do delete the condition.

    Please follow my logic and if it is not correct please let me know why there is a conflict and how that conflict can be corrected without the deleting the logic that I want to apply.

    I look forward to hearing from you.

    Thank you for your help




    1573779365Screen Shot 2019 11 14 at 4 Screenshot 10

  • Girish JotForm Support
    Replied on November 14, 2019 at 8:19 PM

    Let me check your condition and I'll revert via this thread.

  • josephriba
    Replied on November 14, 2019 at 8:23 PM

    Hi Gerard,


    You wrote - 


    As per the condition, If either Qn 113 or Qn 112 is YES, then show Qn 115. Yes This mean that if anyone Qn is No, then Qn 115 will be shown. Yes if one of the Qn is "No" and the other is "Yes" then Qn115 will show. The only time that Qn 115 should hide is if the answer to both 112 and 113 is "No"  That is how the condition should work. Is that correct?

    But additionally, when both are YES, then also the Qn 115 will be shown since the condition looks for one value to be NO and other value to be YES. That is close but not quite true. 112 and 113 may both be hidden.  Or 112 may be yes in which case 113 will be hidden.  But if 112 is No then 113 must be Yes in order for 115 to show.

    Scenarios:

    Qn 113 =  YES, Qn 112 = NO -----> Qn 115 will be shown correct

    Qn 113 = NO, Qn 112 = YES -----> Qn 115 will be shown if 112 = Yes 113 will not be shown

    Qn 113 = YES, Qn 112 = YES -----> Qn 115 will be shown if 112 = Yes 113 will not be shown

    Qn 113 = NO, Qn 112 = NO -----> Qn 115 will not be shown correct

    See an example below:

     

  • josephriba
    Replied on November 14, 2019 at 8:30 PM

    I am not sure that you understand the challenge with my form.  Conditions can be written a lot of different ways and the logic will still work.

    Even though the form works if a conflict is created the form works more slowly.

    I have been working with jotform for a few years.  So I do know the basics. I am not asking how to write the logic as I understand that.  I want to optimize my form so that there are no conflicts.

    My form is getting faster as I go through this process.

    Are you aware of how to optimize a large jotform?


    Thanks again for your patience


    Regards

    Joe


  • Girish JotForm Support
    Replied on November 14, 2019 at 9:24 PM

    Hello Joe,

    I understand your requirement clearly. You do not want conflict in the conditions and we'll help you out. My apologies if my earlier response created confusion and misunderstanding.

    Regarding the last screenshot that you have provided, could you provide the form itself, so that we could check the other conditions too.

    Conflicts can be created with any other linked condition too. Therefore it's important to understand how the form and process flow works.

    Thanks!

  • josephriba
    Replied on November 14, 2019 at 9:28 PM

    Thank you Gerard,


    This is the form.  https://www.jotform.com/build/92450387633865

  • David JotForm Support Manager
    Replied on November 14, 2019 at 10:55 PM

    Basically, to optimized conditions you need to make sure to:

    1) Create nested conditions if a field or group of fields will be shown based on multiple selections.

    Like the one you shared in your first example, this would avoid having two separate conditions:

    1573789260optimized Screenshot 10

    2) Avoid creating a "HIDE" condition on a field that already has a "SHOW" condition applied to it. 

    3) Using "Show multiple" conditions if many fields should show up based on a selection.

    I have cloned your form, and reviewed your conditions and they look pretty well, I don't see any unnecessary conditions, or conditions that would cause conflicts. However, having 221 conditions would definitely slow down the form regardless if they are redundant or not.

    Let us know if you have more questions, we will be glad to assist you.