Forum Discussion
Enabling reclicking of buttons
Higher L,
You can easily do this, but first, here’s an explanation of why your triggers don’t work. The button starts in Normal state. The first thing that happens when you click it is that it changes to Visited state, then executes the triggers that are associated with it.
So the first trigger shows the layer, but before it registers on the screen, the second trigger hides it because the button is equal Visited state.
What you need is for the first trigger to be “Show layer X when user clicks Button IF Button is equal Selected state”. The second trigger is “Hide layer X IF Button state IS NOT EQUAL Selected. What makes this work is that repeated clicking of the Button toggles it between Normal and Selected, even if the two states are identical. Note that IS NOT EQUAL Normal will not work, because both Normal and Selected are normal states.