Skip to main content
Answer

multiple select branching logic help

  • May 8, 2023
  • 2 replies
  • 69 views

My last question of the my form is do you take “Are you currently taking any of the following medications?”. If the user selects two or more, I would like them to go to a specific ending. This the logic that I have created for the question.  I have choices from A to Z. So my thought was if the user Chooses A and B or C or D Or E, etc. it would just to my specific ending. I can get it to work A & B and B & A. When I try to get to Z, that’s when it fails and If I just select one option it sends me to the non desired ending page. Any help would be amazing

 

 

Best answer by john.desborough

@rprestonnp - you need to simplify your and/or logic rule approach, imho. 

i’ve seen more people get super frustrated over combining things the way that you have here. 

try to get things to a simpler set of rules, and work it out on paper first, along these lines: 

  • if A and B then go to E1 (ending one)
  • If A and C then go to E1
  • if A and D then go to E1
  • if A and E then go to  E1
  • if B and C then go to E2
  • if B and D then go to E2
  • if B and E then go to E2
  • if C and D then go to E3
  • if Cand E then go to E3
  • If D and E then go to E4

a few more logic rules but less trouble shooting

when you are putting your rules into the tool, be sure to put the most restrictive at the top:

  • if A and B and C and D and E then go to E22
  • If A and B and C and D then go to E23
  • If A and C and D and E then go to E24

those are some example of more restrictive and would be created first.. 

hope that helps somewhat

 

des

2 replies

john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • Answer
  • May 8, 2023

@rprestonnp - you need to simplify your and/or logic rule approach, imho. 

i’ve seen more people get super frustrated over combining things the way that you have here. 

try to get things to a simpler set of rules, and work it out on paper first, along these lines: 

  • if A and B then go to E1 (ending one)
  • If A and C then go to E1
  • if A and D then go to E1
  • if A and E then go to  E1
  • if B and C then go to E2
  • if B and D then go to E2
  • if B and E then go to E2
  • if C and D then go to E3
  • if Cand E then go to E3
  • If D and E then go to E4

a few more logic rules but less trouble shooting

when you are putting your rules into the tool, be sure to put the most restrictive at the top:

  • if A and B and C and D and E then go to E22
  • If A and B and C and D then go to E23
  • If A and C and D and E then go to E24

those are some example of more restrictive and would be created first.. 

hope that helps somewhat

 

des


Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • May 16, 2023

@rprestonnp Did the solution above help? Let us know if you need any assistance!