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

  • arielkatz
    Asked on January 7, 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


  • Kiran Support Team Lead
    Replied on January 7, 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 Screenshot 10

    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 Screenshot 21

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

    Thanks!

  • arielkatz
    Replied on January 8, 2018 at 3: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
    ...
  • Kiran Support Team Lead
    Replied on January 8, 2018 at 5: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!

  • arielkatz
    Replied on January 8, 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
    ...
  • Kevin Support Team Lead
    Replied on January 8, 2018 at 11:35 AM

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

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

    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: 

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

    I hope this info helps. 

  • arielkatz
    Replied on January 8, 2018 at 2:43 PM
    Thank you. But what happens if the score is exactly 90?
    ...
  • Kevin Support Team Lead
    Replied on January 8, 2018 at 3:52 PM

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

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

    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. 

  • arielkatz
    Replied on January 8, 2018 at 4:43 PM
    thank!
    ...