I have a count variable named scenario, the next and previous are hidden on 0 and change to normal on 3. The previous button works, but the next does not.
I have checked every setting, replaced the variable, replaced the slide and it still doesn't work.
Hi Victoria, you need to be checking the "scenario" variable on Timeline start. Also, to Show/Hide the buttons, you should look for the value being "less than 3" to hide, and "greater than or equal to 3" to show.
I also picked up and issue that you could completed the same scenario multiple times. For example, I could complete the first scenario twice, making the value of scenario four before attempting two. You might want to consider disabling the buttons once the scenarios are complete to prevent that behaviour.
It would if the value was exactly three, but the way you have it setup, it could equal more than three if you visit scenarios more than once, you could end up with 4,5,6 etc. Therefore scenario would not equal 3.
Yes, but back to the original problem, you were hiding the buttons if scenario = 0 on timeline start, but were showing them on scenario change (not on timeline start) so you just saw the buttons not being hidden because scenario didn't equal 0 when returning to the slide.
I saw the buttons hidden on timeline start, but then when variable changed to 3, I saw the previous become active and the next become disabled. - ???????
It would have been the default state of the next button. Previous state was normal, Next was disabled. Their default states if they weren't being hidden.
That’s correct. I think if you include the Seek Bar it would enable Next
once it reach the end of the Seek Bar (slide timeline), unless you included
further instructions on the slide to disable the Next button, where as in
your case, you would have to include some functionality to change Next to
Normal when necessary.
21 Replies
Hi Victoria, you need to be checking the "scenario" variable on Timeline start. Also, to Show/Hide the buttons, you should look for the value being "less than 3" to hide, and "greater than or equal to 3" to show.
I also picked up and issue that you could completed the same scenario multiple times. For example, I could complete the first scenario twice, making the value of scenario four before attempting two. You might want to consider disabling the buttons once the scenarios are complete to prevent that behaviour.
Thanks Sam!
On all my other slides, I have always done it this way but must be because of the 3 separate slides. Thank you so much!
It's Ok if they visit the same scenario twice.
Thanks again so very much!
Sorry, just wondering why I can't have "equal to 3" and must have "greater than or equal to 3" when I want it to be 3?
Because if someone visits one slide twice, then when they visit the third one, the value is four, and Next won't show.
But I was just visiting each slide once and it didn't work. Why isn't it working when I click on each slide once (count 3) and I use = 3?
Because you were looking for a change in the variable. The change occurs on the other slides, and so is not detected on the slide you wanted it to be.
Oh I thought variables were global and their states were detected from any slide
I'm still confused on why (after checking when timeline starts) variable = 3 doesn't work but variable =>3 works?
It would if the value was exactly three, but the way you have it setup, it could equal more than three if you visit scenarios more than once, you could end up with 4,5,6 etc. Therefore scenario would not equal 3.
Theoretically, but I was only clicking once on each, so it would equal 3 and it didn't work.
You can check the file.
Variables are global, but to detect a variable change you have to detect that change on the slide.
ah, hence the "when the timeline starts" part instead of "when the variable changes" - yes?
Yes, but back to the original problem, you were hiding the buttons if scenario = 0 on timeline start, but were showing them on scenario change (not on timeline start) so you just saw the buttons not being hidden because scenario didn't equal 0 when returning to the slide.
Yes, I think you've got it
I saw the buttons hidden on timeline start, but then when variable changed to 3, I saw the previous become active and the next become disabled. - ???????
It would have been the default state of the next button. Previous state was normal, Next was disabled. Their default states if they weren't being hidden.
That makes sense, but how did the next button get to a default state of disabled? Where is that setting?
This setting in your Player > Menu > Cog (bottom of menu)
ah.... I will have to check for that. Restrict means disabled then I guess?
That’s correct. I think if you include the Seek Bar it would enable Next
once it reach the end of the Seek Bar (slide timeline), unless you included
further instructions on the slide to disable the Next button, where as in
your case, you would have to include some functionality to change Next to
Normal when necessary.
oh thank you so so much!!
This discussion is closed. You can start a new discussion or contact Articulate Support.