Forum Discussion
Variables and Layers
Hello everyone!
I am working on a page with 6 layers (base layer + other 5 layers).
I need to set a rule that allows the user to click the next button *ONLY* if he opened all the layers.
Next/Previous buttons are custom-made (copy&paste the button + trigger added).
Can you help me?
I'm not good in creating variables... :(
Thank you!
21 Replies
- KamilNowekCommunity Member
HI Mary.
How are opening all the layers? By clicking on the buttons? If yes, you should add trigger - jump to slide when user clicks next button if all your buttons are visited.
- FannyVirgilioCommunity Member
Hi Mary,
You don't need to use variables. Kamil gaves you the solution.
In general, I add a layer that appears when you click on NEXT and all other layers were not seen. I put an instruction "Click all buttons before continuing." In this way, the user does not have the impression that the NEXT button does not work.
Sorry for my english, I'm french

- MaryLainCommunity Member
How can I add the condition "if all the buttons are visited"?
I cannot find it anywhere.Sorry and thank you!
^_^
- BrianAllenCommunity Member
Similar question in another thread, and similar solutions provided.
Using the "visited" state of the buttons is definitely an option.
If you wanted to use variables, just create a variable (default value of False) for each layer that needs to be viewed. Add a trigger to each layer that sets the value of that layer's variable to True.
Add conditions to the trigger of your next button that all variables have to equal True before the user can go to the next slide.
Additionally, using either method, it would be nice to add a layer that would display if the user has not viewed all of the slides, letting them know that they need to before they move on.
- AndrewMugera-08Community Member
So so perfect. Thanks Brian Allen. Was super easy to set variables after reading this.
- BrianAllenCommunity Member
Mary Lain said:
How can I add the condition "if all the buttons are visited"?
I cannot find it anywhere.Sorry and thank you!
^_^
Hi Mary,
Using the visited state or variables will require you to add multiple conditions. For example, the state of this button is visited, AND the state of this other button is visited, etc. Alternatively, with variables, it would be variable 1 equals True, AND variable 2 equals True, etc.
Here is a tutorial on using variables - http://community.articulate.com/tutorials/products/adding-true-false-variables.aspx
- ChrisFletcherCommunity Member
If you use your own buttons, set the state of your next button as "disabled". Then create a trigger like this:
Action - Change State Of
On Object - Next Button
To state: Normal
When: State
On: All of - then tick all of the buttons that open the layers
Is: Visited
That should do it. The Next button wont work until they've all been viewed.
Chris
- MaryLainCommunity Member
Thank you Chris!
I am trying to use your solution (seems to be the easiest), however, I don't understand if I have to add that trigger on every layer or not.I followed your instructions and the condition works on the base layer only.
When you click a tab and open a layer, next button sets on normal.
Am I doing something wrong?
Thank you!
Hi Mary,
Are all the buttons to your layers from the base layer or on each individual slide layer? If the buttons are also on the layers themselves and just not accessible from the base layer - you'll also need to add the trigger to the layers themselves...but it would be a lot less work to show your base layer, and only hide particular elements you want to hide using the "eye" icon within the timeline:
- KARCommunity Member
Hi - I am trying to do this and failing. I have six buttons that need to be clicked on, and a next button that needs to appear once all the buttons have been clicked on. Tried both a visited state on the six buttons, then variables on the layers they open, but my next button still won't appear.
Can anyone help?
- WendyFarmerSuper Hero
Hi Katherine
are you using custom navigation buttons or the inbuilt SL next / prev buttons and what version of SL are you using
Related Content
- 12 months ago
- 10 months ago
- 12 months ago
- 12 months ago