Toggle between custom states

Sep 15, 2022

Hi, 

I would like an object to toggle between normal and a custom state. It looks like I can only use the toggle trigger with a Disabled or Hidden state... and  the same when setting up a true/false variable. I feel like I am missing something...

Any help is greatly appreciated!

 

9 Replies
Walt Hamilton

If all you want is a toggle between two states when the learner clicks, use Normal and Selected. They have built-in superpowers to toggle back and forth.

If your need to toggle at some other impetus, you will need a custom state, a T/F variable, and some triggers:

1. Change to state if variable = T

2. Change to other state if variable = F

3. Toggle (not set) variable. 

Phil Mayor

The toggle trigger is only for disabled and hidden which I have always found odd but is how it works.

Walt is suggesting using a selected state which is the most elegant way to toggle a state.

His other solution which will work well is to create the triggers in the order he suggest then it will work