Forum Discussion
Disabling and Enabling Next Button
Hello,
I have been creating a lot of slides where users have to click various items that have a selected state. I have disabled the next button when the timeline starts on that slide and then enabled the next button once all objects have been selected. All seems to work fine, but once the user goes to the next slide and then revisits the past slide (either from the menu or previous button), the next button remains disabled (even though all objects are in their selected state). I have changed the slide to "reset to initial state" when revisiting, but this can be quite cumbersome for the user to go through everything again if there are a lot of objects or slide layers that need to be visited.
Is there a way to make sure the next button stays enabled when users revisit the slide?
Thank you,
Mackenzie
- JudyNolletSuper Hero
Hi, Mackenzie,
As Philip said, you should set the Slide Properties to "Resume saved state" for revisiting.
However, there's a bug: Storyline will still execute that "when the timeline starts" trigger, even when the slide otherwise resumes the saved state.
Fortunately, there is an easy fix for this:
- Create a T/F variable with an initial value of False.
- For the trigger that disables NEXT when the timeline starts, add a condition so it only happens when the variable = False.
- Add a trigger that changes the variable to True when the interaction is done. (This means the condition to disable NEXT won't be met when the user revisits the slide.)
Here's a sample of how the triggers would look with enabling NEXT when the timeline ends (instead of when an interaction is done):
- PhilipRoy-943e2Community Member
So you'd want "Resume saved state" as the setting to remember what had happened last time you were on the slide...but it may also be impacted by how you coded the slide...for example, if you have set a variable to reset at the start of the time line.
It would help if you could provide a copy of the slide?
- michelepatlaCommunity Member
Thank you! This work around saved me. I have been struggling with this bug for weeks.
- MichaelJohns645Community Member
Just ran into this same issue, and the work around was a lifesaver.
- AndreaGarajovaCommunity Member
Hello, is it possible to do this on Master slide? Or do I have to add triggers and variables to MyCustomNextButton for each slide? Thank you.
- JudyNolletSuper Hero
When you're working on a slide, you can't add triggers that affect an object on the Master Slide.
And because the above programming requires a unique variable for each slide, it won't work on the master, either.