Changing state of button from later slide

Nov 04, 2019

I have a table of contents (TOC) and want the learner to either be able to progress from section 1 -end or go from the TOC to a section. I would like either clicking the TOC item or viewing the slide to change the associate button on the TOC slide. I have added a variable and it does not seem to act as expected. 

This is a practice version so I could get the triggers sorted for my real project: 

Button 1 goes to visited when clicked. Button 2 goes from disabled to normal when button 1 clicked. Button 2 goes from normal to visited if clicked. I would like Button 2 to also go to visited when the timeline on Thing two slide starts. That is what is not working at the moment. 
I am using Storyline 3
Many thanks 

4 Replies
Jeff Forrer

See attached file.  I created a variable called "btn_2_visited".  It is initially set to FALSE.  When you return to the TOC timeline, if the variable is TRUE, then the trigger I added on the TOC changes the state of btn 2 to the Visited state.

The variable I created is set to TRUE anytime the user lands on the 2nd page, so upon return to the TOC the state changes.   Hope this is what you were looking for.

Jeff Forrer

Hello, you created a Number type variable, called "thing2", with initial value of '0'.

  1. You add 1 to its value every time you visit either slide 'Thing one' or slide 'Thing two'. 
  2. So that variable goes from 0 to 1, 2, 3, 4 and so on.
  3. There is nothing telling the buttons on TOC to change states based on that variable that I can see.  Something needs to tell the 'Thing two' button to change to the 'Visited' state.

I created a Boolean or True/False variable (for sole use to change the state of the Thing Two button), with initial value of 'False'.

  1. I change that variable, 'btn_2_visited" from False to True when the Thing two slide is visited.
  2. When returning to the TOC slide, it checks to see if that variable has changed, and if so if it is True, then the trigger tells the 'Thing two' button to change to the 'Visited' state.

Let me know if that makes sense and if you need any further help.

You could do the same thing for the 'Thing one' button as well.  

  1. Create a variable called "btn_1_visited" (or whatever you would like to call it), set initial to False, then on the Thing one slide, change the value to True.
  2. Last add a trigger on the TOC slide to check for that variable being True, and if so, change the state of the Thing one button to 'Visited.




This discussion is closed. You can start a new discussion or contact Articulate Support.