Forum Discussion
Disable Next Button on a Slide until all Buttons are Visited
This example illustrates how to disable next button when the timeline starts and enable next button when a variable change occurs after all of the slide buttons/objects have a state change to visited.
Note: All buttons must have a visited state. The next button will be enabled if the slide is revisited.
Step 1:
Create a True/False variable for the slide objects visited (SlideNumb_Action_VariableType).
Example Variable:
Variable Name, Type = True/false, Default Value = False
S1_AllObjectsVisited_TF
Step 2:
Create a trigger that changes the next button to disabled when the timeline starts if the variable is not equal to true.
Example Trigger:
Step 3:
Adjust the variable when the identified slide elements change to a visited state.
Example Trigger:
Step 4:
Change the state of the next button to normal when variable changes.
Example Trigger:
- TomSeguinCommunity Member
I've tried following these instructions but the Next button is available after about 5 seconds regardless of variable value.
- WendyFarmerSuper Hero
Are you leaving the slide with the buttons to go to other slides and then returning?
If so,
Triggers should be:
change state of next button to disabled when timeline starts on the slide with buttons.
change state of next button to normal when timeline starts on the slide with button on condition xyz is visited.
- WaltHamiltonSuper Hero
Use the Add Attachment button to attach your .story file, and let someone take a look at it.
- BenedictChiaCommunity Member
Wow! Thanks for responding to my question Wendy.
My PC with SL3 software is in the office, I will check back on this when back office monday. But am so impressed by speed of your response, just have to say thank you again :)
- WaltHamiltonSuper Hero
You said:
In storyline360 you might not need to use variables at all.
I don't fully understand them yet and I was getting a weird thing when if I left the slide and went back to it sometimes the next button was greyed out and sometimes it wasn't, it was very frustrating.I suspect the sometimes yes, and sometimes no was caused by the slide being set to "automatically choose" state on revisit. If it chooses to reset, then the timeline starts, the first trigger functions, and Next is disabled. If it chooses saved state, then the Next button is already enabled from the previous visit and stays enabled.
I believe this is a mis-print:
You must make sure you slide is set to reset to initial state when revisiting or else the next button will always disable because of the first trigger,
I believe you meant the slide needs to be set to saved state on revisit. If it is set to initial state, the timeline WILL restart, and the first trigger will fire.
This method works well if nothing the learner clicks takes them to a different slide. If they get part way through the process, and go to a different slide, then using the change to visited state of all the buttons is not always reliable. In that case, you may need to use variables.
- SarahGomesMunroCommunity Member
Hi Walt!
I double checked this and made sure to have it on 'reset to initial state'.
I am still learning storyline360 so I'm sure there is probably a very simple solution to why it isn't behaving the way I want it to. I tried lots of other things like a trigger setting the variable to false when timeline starts but it didn't fix the bug.Ideally I would have the next button locked going forwards but unlocked when revisiting but I haven't found a way to do this yet.
- SarahGomesMunroCommunity Member
Okay chiming in again and eating my own words: the reason it wasn't working is because I missed the bit about the conditions in the triggers! Can confirm that the above method is now working as it should and when I have 'resume saved state' then the learner doesn't have to go through the panels again.
The above method does still work but it can be a little crude and limited as I have already pointed out so may not suit all needs.
- WaltHamiltonSuper Hero
There is a sample of a variety of ways to control user navigation through a menu on paths that include different slides, with different levels of locking the Next button. Find it here: https://community.articulate.com/discussions/articulate-storyline/free-sample-restricted-and-free-random-navigation-using-variables-and-triggers
- ClaireRiley-e7bCommunity Member
Hi, I'm developing an eLearning where there is a menu slide with three options that the user can click to access information on multiple layers. We want users to explore each of the three options before they are allowed to move on to the next slide. I have it set up so that the Next button is disabled when the timeline starts on the slide. I also have set up three variables (one for each option) and set the variable to false. When the user clicks on each option, it takes the user to the various layers. After the user has visited the layer, I change the state of the option to visited (which shows a checkmark) and set the variable flag to true. I have a trigger that states if all variables are set to true, then change Next button to Normal. All this works correctly. The two issues that I am experiencing are:
- After the user returns to the main menu page with all three options checked. The Next button does not change until the timeline ends. Makes sense since I have it set to when timeline ends on the slide, then change Next button to Normal. The problem is that no audio plays and I don't want to wait for the timeline to play to the end. If I change the trigger so that it changes Next to Normal when timeline starts or at a specific point in the timeline it no longer works. How can I get the Next button to change to Normal immediately when the criteria is met? Also, why does the audio no longer play upon returning from the layers.
- Second issue. On the Menu screen, I am not able to click the replay button to have the audio and slide restart. On other slides I have been able to click the replay button and it will replay the audio and slide. It also works on all the layers associated with this slide. How can I get the Menu screen to replay?
I am not able to share the eLearning file, but I did include screenshots of the Triggers and slide properties. Any assistance would be greatly appreciated, I can't seem to figure out what I am missing. Thanks, Claire
- ClaireRiley-e7bCommunity Member
Walt thanks for the speedy reply - your fix worked! Thanks so much!
- WaltHamiltonSuper Hero
You're welcome. PIAWYC (Pass it along when you can).
- KylieHorwillCommunity Member
I managed to set this up on one of my slides which contained buttons, however when I've tried replicating this on other slides containing buttons, the Next button doesn't disable. As far as I can tell I'm setting it up in the exact same way but the Next button is visible when it shouldn't be. Any ideas of what I'm doing wrong?