Forum Discussion

BURCUEVKELSARPK's avatar
BURCUEVKELSARPK
Community Member
2 years ago

selected triggers

Hello. I added a trigger so that my ovals become selected after clicking on them, but they only work when the mouse clicks. They return to normal when the election moves on to the next election. How can I fix this situation? thanks for helps!!

  • SandeepGadam's avatar
    SandeepGadam
    Community Member

    Hello there, I suggest you to create a visited state for the specified ovals and see if that overcomes the specified issue.

  • Hello. It appears the ovals are all tied to a Button Set, which is why only one appears "Selected" at a time. Set the Button Set to (none) and the ovals will stay in the Selected state as the user moves on to the next election:

    Please note: Because you are utilizing the Selected state, an oval will change back from the Selected state to the Normal state if/when the user clicks the oval again (toggle effect).  

     

  • The buttons return to the Normal state when another button is clicked because the buttons are in a button set.

    When the buttons are removed from the button set, a button in the Selected state doesn’t go back to Normal when another button is clicked. It will, however, go back to Normal if it is clicked again. That could be confusing. Therefore, if you want all the buttons to look the same, use a Visited state instead of a Selected state. 

    • Personally, I don't think this is a good option, because the user can't tell the difference between the currently selected button and buttons that have previously been selected. 

    The attached file has an alternate version:

    • The buttons are still in a button set, so only one can be Selected at a time. 
    • The buttons also have a Visited state. A button that has been clicked will automatically be changed to the Visited state when another button in the set is Selected. This lets the user see with button is currently Selected and which buttons have been Visited.

    FYI: Selected and Visited are built-in states. They work automatically, without triggers. So adding a trigger to change to one of those states will usually cause a problem.