Skip to main content
NixTheNext
Inspiring
October 10, 2016
Answered

Nested If (Else If) workaround needed for Captivate 9

  • October 10, 2016
  • 1 reply
  • 312 views

I have a page where the user selects the area(s) they work in. There are 5 total areas, and each learner could select one or more of those areas. Based on the selections made on this page, the course should automatically direct them to the slides that apply to them... So, if they select Area A and Area B, it should first show them slide A, then slide B.

Ideally, a nested if or an else-if function would be best, but I get that's not available, yet. I'd like to avoid doing this in javascript, but I'm open to exploring that option. Anyone else have a creative solution to this before I keep sending the learner back to the choose-your-area(s) page until they click an "I'm done" button?

Thanks!

This topic has been closed for replies.
Correct answer NixTheNext

Well... it seems typing it out gave me "fresh eyes"

I set it up to concatenate a user variable: So if the learner selects Area A and Area C, the "user_area" variable value would be "AC". The course then goes to the next page. On enter, an advanced action fires testing if "user_area" contains A, and pauses. Else it goes to the next page. And so on, through B, C, D, E.

1 reply

NixTheNext
NixTheNextAuthorCorrect answer
Inspiring
October 10, 2016

Well... it seems typing it out gave me "fresh eyes"

I set it up to concatenate a user variable: So if the learner selects Area A and Area C, the "user_area" variable value would be "AC". The course then goes to the next page. On enter, an advanced action fires testing if "user_area" contains A, and pauses. Else it goes to the next page. And so on, through B, C, D, E.