State of Next and Prev Buttons
Aug 14, 2019
Hello all,
I have a slide with about 10 layers. I also have 4 topic buttons in my slide which I want my learners to visit all. So, I want to hide next and prev buttons until my learners visit all layers by clicking on topic buttons. I created a variable for each of my buttons and set them to false as their initial values. I adjusted those variables when learners completed the layers associated with the buttons. Can somebody help me understand why my conditions don't work?
I set prev and next buttons' initial states as hidden and wanted to change them to normal when all variables are changed to True!
Thanks in advance!
15 Replies
Can you share the slide or at least an image of the timeline and the triggers?
Here are the screenshots of slide, timeline, and triggers. Sorry, I can't share the whole slide for privacy issues.
I don't see any triggers that set the value of the variables (Approach, Interest,etc).
They are set in the layers. For example, for the Approach, there are three layers. I set in the last layer as in the picture attached.
This is how it is set
This is really not possible for me to debug without being able to see all the triggers and how they interact.
Basically, it seems that adjusting variable in a layer doesn't make an impact on the main layers!
A variable is global to the project. It doesn't matter where it's set. Maybe the triggers to set the variables aren't activating. Have you tried displaying the variable values?
What do you mean "displaying variable values"?
Insert a text box and then place %variableName% in the text box. Replace variableName with the name of your variable. Very helpful for debugging what your variables are doing. I frequently create a box that has something like the following:
Variable1 = %Variable1%
Variable2 = %Variable2%
The %Variable1% construct is replaced with the value of that variable.
Okay. I found a different solution. I created a new variable called "nextprev" and set it to False as its initial value. Then, created a trigger like "adjust the variable to true when the states of all topics button's are visited, and then change the state of next and prev button to normal if the value of variable nextprev is true. It seems to be working. But I still want to know what "displaying variable values" mean.
Oh, I got it. Thanks for letting me know. I never tried this.
Add a text box onto the slide and insert > reference (this is the variable) then you will be able to see if the variable is changing when you do the action that is required to change the variable.
That's what my previous post is talking about doing.
Yes, thanks so much, Diane and Wendy!
This discussion is closed. You can start a new discussion or contact Articulate Support.