Forum Discussion
Issue with variables and triggers
The "Additional Information" button appears on both slides in the file you uploaded.
I noticed there is a disabled trigger to change show that button when all the Topic buttons are Visited, with the conditions that all of the associated variables = True. Here's the problem with that trigger: when the final button changes to Visited, the final variable isn't True yet. Thus, the trigger will never run.
There are different ways to get around that issue. For example, I like to use a blank "programming" layer that has the trigger with the necessary trigger. Show that layer (with its properties set so it doesn't hide other layers) whenever one of the required buttons is clicked. This is demonstrated in the attached file.
As for your "Next" button: On your first slide, there's only a trigger to change it to Normal when the first variable changes. But there's no trigger to change it when the second variable changes. Thus, if the user clicks the button on the left first, the Ob_Ad_2 variable won't be true yet. (The Next button will appear if the user clicks the button on the right first.)
In any case, you're making it more complicated than it needs to be. You don't need variables at that point. Just adjust your NEXT button when the buttons on that extra layer are Visited.
The same fix applies to the second slide.
By the way, you don't need a trigger to change a button to Visited when it is clicked. Any object with a Visited state will change to Visited when clicked. That functionality is built in. Here's more info: PRIMER: Take advantage of built-in states | Articulate - Community
Thank you for your reply. The attached sample did contain several attempts at getting the triggers to work, with a few that I should have deleted. My main issue is on the 1st slide with the 7 'tip' buttons (which appear once the Topic buttons have been clicked) not showing the 'Additional Information' button once they have all been clicked. I have variables 'Ob_tip_1', Ob_tip_2', etc. which all activate and change to true, but I can't get the 'Additional Information' button to change to Normal state once the 7 variables have changed.
My goal is to have the user click the topics which reveals information via the layers and contains the 'Tip' buttons, and once all tips have been shown, show the 'Additional Information' button. Then they can go to that layer, select the 2 buttons there which then shows the next button. The user should then still be able to go back to the other layers and have the 2 bottom buttons show.
- JudyNollet30 days agoSuper Hero
The way to show the "Additional Information" button after all the Tip variables are True is demonstrated in the file I attached to my earlier reply, which also gives an overview of what I did.
- JohnKozlovic30 days agoCommunity Member
Thank you Judy. This is exactly what I was looking for! The 'Programming Layer' works perfectly.
- JudyNollet30 days agoSuper Hero
A programming layer can be quite useful, especially when a complicated trigger or multiple triggers need to run when any button in a set of tabs is clicked.
Instead of repeating (and possibly needing to edit) the trigger(s) on each button, just have the buttons show the layer with trigger(s).
As shown in the file I attached in the previous reply, remember to take these steps on the programming layer:
- As needed, adjust the Slide Layer Properties so the programming layer doesn't hide other layers.
- Shorten the timeline, and add a trigger that hides the layer when the timeline ends.
😄