Forum Discussion
How do you create a toggle button?
How much stuff is on the layer? The easiest way to get that toggling may be to move the content from the layer into the Selected state of the button. A button with a Selected state will automatically toggle between Normal and Selected when it's clicked, so you wouldn't need any triggers (or layers).
- CarynWagner3 years agoCommunity Member
Judy,
I followed your suggestion of moving the content to the Selected state and it worked great, thank you!
I then tried to put my 3 buttons in a button set, but now they are no longer toggling back to the Normal state when the same button is clicked. Is there a way to get around that?
- JudyNollet3 years agoSuper Hero
The point of a button set is to require the user to make a selection—and only 1 selection. For example, to indicate an answer to a question or to choose an avatar.
However, that means that to deselect a button in the set, the user has to select another button in the set. Or some other trigger has to change the button back to Normal.
Depending on your situation, you could try one of the following:
- Remove the button set. (That works if no answer is required or if more than one item can be selected.)
- Add a button to the set that's labeled something like "Clear selection." (Sure, technically, they'd be selecting that button. But that would deselect the other buttons with actual choices.)
- CarynWagner3 years agoCommunity Member
Okay, I'm going to try a couple things to see if I can make it do what I want it to without the button set. If I end up not being able to thwart the issue I'm envisioning, I may have to come back with a file attachment for more expert help!
Related Content
- 3 months ago
- 3 months ago