Change State based on Variables

Apr 29, 2024

I have a custom menu slide with three buttons inserted that are given a visited state.  There is a trigger for each button to jump to specific slides when the user clicks on it. I created true/false variables for each slide to turn to true when the user clicks the next button that appears at the end of each. After each one changes to true, there is a second trigger to take them back to the menu, in that order.

On the main menu, my trigger is to "set the state of *button* to visited when the timeline starts on this slide IF the assigned variable = True." Yet, the state is not changing. 

I would like to add when I click on each button the visited state appears quickly before going to the slide but then doesn't remain when it's returned. If my trigger is to have it change to visited when a variable changes, why is it changing when clicked but not remaining when the variable has changed?

3 Replies
Judy Nollet

Visited is a built-in state. That means it comes with built-in functionality. A button with a Normal and a Visited state will automatically change to Visited when it is clicked. Triggers that try to override or duplicate that functionality often cause problems.

Walt Hamilton
This discussion has a sample that will illustrate Judy's last suggestion, which is probably the best idea.
 
 
The Restricted Navigation does not show the link to the next section until the previous section has been viewed. The Mixed Navigation allows the various sections to be visited in any order, but does not allow going to the End until all sections have been viewed. The Free Navigation allows the sections to be visited in any order, and the End to be visited at any time.