Conditional logic parameters when using a scoring scale

  • asiaexchange
    Asked on March 7, 2018 at 9:23 AM

    Hi,


    I want to create a quiz form that leads a user to a different thank you page depending on the score. So for instance the score of 0-10 would give one result, the score 11-14 would give another etc. 

    My question has to do with the rule parameters. If I set the parameters as Less than 10, does this include the score of 10 as well? Similarly, if I set the parameters as Greater than 11 and less than 14, does this include 11 and 14? I ask this because there aren't parameters called "equal or greater than" or "equal or less than". I tried to set a separate "equal to" parameter for each rule, but that doesn't seem to work well. 



  • Mike_G JotForm Support
    Replied on March 7, 2018 at 11:33 AM

    If I set the parameters as Less than 10, does this include the score of 10 as well?

    Setting the parameters to "Less Than 10" means "If the value is 9 and below". This does not include the score fo 10.

    Similarly, if I set the parameters as Greater than 11 and less than 14, does this include 11 and 14?

    If you set the parameters to "Greater Than" 11 AND "Less Than 14" the target values are 12 and 13 only. The values 11 and 14 will not be included.

    As for the "equal or less than" or "equal or greater than" states, it is possible for values without any specific range. For example, "equal or less than 10" can be created as:

    1520440012t11 26 04 Screenshot 10

    The condition above would be executed if the "Equivalent value" is "equal OR less than" 10.

    This covers values from 0-10 and it can also be for values less than 0 (-1, -2, -3, and so on).

    I hope this helps. If you have any further questions, please feel free to let us know.

  • asiaexchange
    Replied on March 8, 2018 at 4:53 AM

    Thanks for your answer. I guess where I hit the wall was when I tried to use the method you describe to create a rule for scores that go beyond the 0-10 one. Like this:

    1520502674Jotform quiz conditions Screenshot 10



    Looks about right? But in practice, no matter what answers you give, you only get the second result between 10-14 (Lombok, Indonesia).

    Am I doing something wrong here?


  • Adrian
    Replied on March 8, 2018 at 7:10 AM

    The problem is that you are using If "ANY" of the "If" rules are matched.
    If the Total is equal to 5 for example, all of the conditions are fulfilled because 5 is less than 10, it is also less than 14, it is also less than 18, and so on.

    Make sure that you use "ALL" in the drop-down If "ALL" of the "If" rules are matched.

    For values from 19 to 22, including 19 and 22, the condition would look like this:

    1520510989lesg Screenshot 10

    18 and 23 would not satisfy this rule, also numbers less than 18 and greater than 23.

    Do not use EQUAL to, because it is not needed and it will complicate things in your case. Change the VALUES if you need to include an extra number.