Answered

multiple select branching logic help


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

 

 

icon

Best answer by john.desborough 8 May 2023, 20:14

View original

2 replies

Userlevel 7
Badge +6

@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

Userlevel 7
Badge +5

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

Reply