Forum Discussion
States and Triggers Question
I have four objects/buttons on a slide. Ideally I would like users to see the hidden text (which displays by a trigger that changes the state once clicked on) one button at a time. I can get each to function correctly in all states of Normal, Hover, and the manual "click" state, but all of them remain on the "Clicked" state as there isn't anything triggering for them to go back to normal. How do I get them to reset, so only one text box is visible at a time? My work around is to set up triggers to change the state back to "normal" when the user click any other item, but that would require 12 additional triggers to be added. I tried grouping the four buttons into a set, and that did not help. (I thought that was a solution as is was supposed to have a rule to only allow one item to be selected at a time, but the Selected state is not ideal for this situation. Selected doesn't work here because it requires you to move your mouse away from the object to have the state change) IS there a way to "reset all objects on the slide to normal when user clicks any object..." or some rule similar to that? I'd love some guidance on "one-at-a-time" functions. Thanks!
- NedimCommunity Member
I recommend placing your hidden content on four separate layers instead of storing them in the clicked state. Organize your buttons within a button set and reveal the corresponding layer when each button is clicked. You wouldn't need to move your mouse away from the object to trigger the state change. The selected state on one button will automatically revert to normal when another button is clicked/selected. Please check the attached .story file demonstrating this example.
- SBP_IncCommunity Member
You might try layers vs states, as we have the ability to control the exclusiveness of layers