Variables unable to change the state of buttons?

Jun 09, 2020

I am trying to create an interaction where buttons on the main menu will change depending on if a section of the course has been visited. I am currently having an issue where both the triggers and the variables I have set up to do the same task are both failing. 

1. I have a true/false variable that is set to change the state of a button to "hidden" when the variable of the course is set to "True". I have a trigger that sets the variable to "True" when the target slide is viewed. According to the reference variable, everything should be working. However, the button's state does not change. 

2. I have a trigger set up so that the button will change to a custom state when it it is pressed. This is currently not working. 

I have also changed the slide properties of each slide to "return to saved state" and I have double checked that I am on the latest version of Storyline. Any help would be appreciated, I am at a loss. Thank you!

2 Replies
Sam Hill

Hi Mike, you are close, but your triggers aren't quite right. This will work if you change the triggers to "Hide the button when timeline starts if x equal True".

The trigger you currently have is not working because it only occurs when the variable changes. You are not on the required slide when the variable does change.

Mike McKay

Hi Sam,

Thanks for taking a look at my issue. It actually took me a few minutes of reading your reply before it clicked for me where my issue was. I kept thinking I couldn't use the "when the timeline starts" trigger because I had it in my head that it had to be timeline that is on a different slide which isn't possible. Once I tried your suggestion of "when the timeline starts if slide is true" it worked. 

Thanks for your help, you're a lifesaver!

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