Enable button after slides visited

May 01, 2020

Hello, I want a button on slide 1.6 to be enabled only after two linked slides (1.7 and 1.8) have been visited. I can't seem to be able to work out the triggers. Can someone help?

10 Replies
Ned Whiteley

Hi William,

If you create two True/False variables that are initially False and then change to True when slides 1.7 and 1.8 are visited, you can then use these two variables as conditions to enable the button on slide 1.6.

On slides 1.7 and 1.8:

Change the state of the variables when the user clicks on the button on each of the two slides that navigates to the next slide. Note, make sure the variable is changed before the user is jumped to the next slide. Trigger order here is very important.

On slide 1.6:

Change state of Button 1 when timeline starts on this slide if Slide1.7Visited and Slide1.8Visited are True

Hope this helps.

William Ryan

Hi Ned, thanks again for your help. 

  1. I set the initial state of button "Back to Settings" to Disabled in Slide 1.6
  2. I set two variables as you described, so that the initial states are False. Variables are named Slide1Visited and Slide2Visited. 
  3. I set the triggers on Slide 1.6 controls that navigate to slides 1.7 and 1.8 so that when they are clicked, the state of the variables are changed to True. After the control is clicked, the new slide appears.
  4. I made the trigger for the "Back to Settings" button so that the state is changed to Normal if variables Slide1Visited and Slide2Visited are true. The event to trigger is when the timeline starts. 

Somehow this is not working.  I appreciate any further advice. 

Ned Whiteley

Hi William,

It is a bit difficult to fault find without seeing your Storyline file, but the first thing to check is that you have your trigger order correct. When you click on the buttons to jump to slides 1.7 and 1.8, make sure that the variables are changed to True before you jump to the slides. If you jump to the slides first (i.e. these triggers appear above the variable change triggers in the list), the variables will not be changed as, once the jump trigger is activated, no further triggers will be activated as the slide has already lost focus.

If your trigger order is correct, are you able to post a copy of your file here as that would be a big help in solving the problem?

Many Thanks

Ned Whiteley

Hi William,

Amend the trigger that changes the state of the Back to Settings button to "When timeline starts on this slide" and then it works okay.

I also suggest you delete the two triggers that hide the layers when the slide timeline starts as these are not necessary. By default, layers are hidden until you show them.

William Ryan

Thanks a lot for your advice, now it's working great, or at least as expected. Two unrelated questions:

  1. Is it good practice to put the trigger objects on layers? After I started with the project I found that one can just as easily make them hidden or visible without putting them on a layer... 
  2. Now I am almost complete with all the content slides of the course. The last thing remaining is the quiz section. How do I enforce visiting all the slides before making the quiz active?
Ned Whiteley

Hi William,

In answer to your questions:

1.  Personally, I would stick with just the base layer unless there is a significant amount of additional content that you want to call up by clicking on the button or, for example, you want to disable the base layer components whilst the additional information is visible.

2.  The easiest way is to have your quiz at the end of your course and have it only accessible from the Next button on your final slide (which can always be titled "Quiz" instead of "Next"). If you need to, you can add additional triggers to ensure that each section has been visited before making the Next button accessible. If you are using a menu in your Player, you can remove the quiz slides from the menu so that users can't by-pass the other slides and jump straight to it. Also, if you are using a menu, the extra triggers will help prevent your users from jumping straight to the final slide and then accessing the quiz.

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