Conditional Logic/Show Hide Conditions: Conditions on my form are not working correctly

  • Profile Image
    arielkatz
    Asked on January 07, 2018 at 10:41 AM

    I am trying to create conditions in my quiz that will do the following:

    If score is 10 say: "Wow! You scored top!..."

    If score is 9 and above: "Congratulations! Your high score qualifies you..."

    If score is less than 9: "Thank you for taking the..."

    Somehow I get more than one message, which means that I am not configuring my conditions correctly.

    For debugging purposes, I created a simplified clone form (link below).

    Your assistance will be greatly appreciated.

    Thanks,

    Ariel


  • Profile Image
    Kiran
    Answered on January 07, 2018 at 12:36 PM

    I have checked your JotForm and see that the condition rules are conflicting which is causing the issue.

    1515346202Selection_019.png

    The first rule to check if score is less than 9 is not conflicting. However, the other two conditions are. For example, If the total score is 10, the conditions 2 and 3 are conflicting since the rules set are true in each case. 

    I am not sure about your operational conditions, but I believe you want to display the message 'Congratulations. Your high score.....' when the score is 9. In this case, you may consider changing the condition to Equal to 9. I assume this due to the selection any other option for the first three questions is totalling less than or equal to 7 which isn't in your conditions..

    1515346483Selection_020.png

    Hope this information helps. If you are trying to set a different condition, please let us know. We will be happy to help.

    Thanks!

  • Profile Image
    arielkatz
    Answered on January 08, 2018 at 03:26 AM
    Thanks Kiran,
    In the clone version this will work, but not in the real version, where I
    have the following thresholds:
    Anything below 90
    Anything from 90 (inclusive) yet below 100
    And 100
    Can you suggest something that can work with these ranges?
    Thanks,
    Ariel
    ...
  • Profile Image
    Kiran
    Answered on January 08, 2018 at 05:01 AM

    Could you provide us with the form ID/URL that you are referring to the real version so that we can check the issue? 

    We will wait for your response. Thank you!

  • Profile Image
    arielkatz
    Answered on January 08, 2018 at 10:43 AM
    The URL is attached. I think that I understand how to do it (2 if
    statements)
    https://form.jotform.com/73417865237161
    ...
  • Profile Image
    Kevin_G
    Answered on January 08, 2018 at 11:35 AM

    I have checked your conditions and I can see you still have conflicts between two conditions: 

    15154289281.png

    Currently the conditions 1 and 3 will be triggered at the same time if the score is 90. Basically you need to configure your conditions like this, based on your original explanation.

    If score is 10 say: "Wow! You scored top!..."

    If score is 9: "Congratulations! Your high score qualifies you..." -- Here you need to remove the "and above" since "above" will be 10.

    If score is less than 9: "Thank you for taking the..." 

    If you see, you need to evaluate a range to avoid the conflict between other conditions so you show only one message per score result. 

    Having the conditions like the ones below should help: 

    15154292992.png

    I hope this info helps. 

  • Profile Image
    arielkatz
    Answered on January 08, 2018 at 02:43 PM
    Thank you. But what happens if the score is exactly 90?
    ...
  • Profile Image
    Kevin_G
    Answered on January 08, 2018 at 03:52 PM

    You may simply add it to the current condition, example: 

    15154445941.png

    You may also add a new condition with "if score is equal to 90" in case you need to show a different message than the one shown if the score is less than 90. 

    I hope this helps. 

  • Profile Image
    arielkatz
    Answered on January 08, 2018 at 04:43 PM
    thank!
    ...