Change State of Next and Previous Button after Visiting

Feb 15, 2021


In this project, I need to learner to not be able to move ahead in the training until they have visited three layers. I have tried multiple things over the course of several days thinking this has got to be easy to figure out. I would really appreciate help on this. I have a deadline. Thank you!

6 Replies
Maria Costa-Stienstra

Hi, Dianna,

Thank you for sharing your .story file, and you are certainly on the right track! 

The changes I would suggest are:

  • Instead of the trigger that turns the state of the Next button to normal when the text boxes are down, I would create the following one:

Windows 10 (1) 2021-02-15 at 10.37.03 AM

  • Since you want the Next button to work under certain conditions, while not necessary, it would also help to add conditions to the first trigger (Change the state of the next button to disabled when the timeline starts if the text boxes are normal).
  • I would also delete or disable the triggers you have for each text box, changing the state to Down when the user clicks on them:

Windows 10 (1) 2021-02-15 at 10.37.45 AM

Let me know if those changes work for you!

Walt Hamilton

There are several things you can do.

First, you should know that it isn't a good idea to create a trigger to change a state to one of the built-in states, like Visited, Selected, or Down. They all have built-in triggers to make the appropriate change. If you create a trigger to do the same thing, you run the risk of your trigger conflicting with the built-in one, and bad things result from that.

If the base slide sets the state of Next and Previous, you don't need to do it again on each layer, especially since you have hidden base layer objects.

You can't jump to the next slide when all the triggers are in Visited state, because that state changes as soon as the object is clicked, so the jump would occur before the third layer is shown. The way to use states to advance is to use states you created, like one of your New States. Then when the learner returns from the layer, use that click to change the state.

The main reason you can't find a way to make this work is that on finishing a layer, you restart the slide. In that case, states are reset.

The best thing you can do is change this trigger:


First change it to Hide this layer, instead of jump to this slide. Then add one to change the state of the button that shows this layer to state New State. Then on the base, change Next to Normal when the state of the three text boxes is New State.