Toggle and variables

Feb 19, 2021

I'm creating a course in Storyline 360 for two different sets of users. At the beginning of the course, I created a slide with two toggle switches (button set to 1) that adjust the state of corresponding variable. Depending on which of the two they choose, they will advance to different slides.

It works fine if the user doesn't make a mistake. However, if they choose the first option but then realized they made a mistake and choose the second option, they still advance to the slide that corresponds to the first option. 

How can I make sure that the state of the unselected option (the one that was selected but now does not have the checkmark) gets reset?

4 Replies
Tom Kuhlmann

Without seeing the way you have the triggers set, it should work like this:

  • User makes selection, that sets the variable value to A (example)
  • Trigger should be something like this: when user clicks the next button got to A slide if variable is = A....and then a similar trigger to go to B slide if variable = B

When they realize they made a mistake and go back, they should reset the variable value and that should control where they go. 

As a fail safe you can reset the value to X when they get to the slide and then lock the next button until the value is either A or B. This way it forces them to make the selection.

If you share the slide, we can see how you set the triggers. You don't need to share the entire course.

Walt Hamilton

The problem is when you click a button, you toggle one of the variables, but not the other, which defeats your good inclination to make the buttons a set.

I would set the triggers on the Arrow to do all the work, because that allows the learner to make as many changes as they wish, without you needing to respond until they are finished. 

1) Adjust variable pump = "Novum" if State of CheckBox 1 is Selected when Nav Arrows is clicked 

2) Adjust variable pump = "Evo" if State of CheckBox 2 is Selected when Nav Arrows is clicked

3) Jump to [novum slides] if pump = "Novum" when Nav Arrows is clicked

4) Jump to [evo slides] if pump = "Evo" when Nav Arrows is clicked

I may also have a slight propensity to believe "the simplest ways are the best" - one variable is better than two.