Forum Discussion
Issues when using a trigger based on the state of multiple objects
Hello,
I have a slide that has multiple buttons. A user can select one or more buttons that then changes the state of a "Submit 2" button. The trigger to activate the proceed button uses the condition "When the state of at least one of......is selected." When only this trigger exists, it functions correctly.
Because I don't want the Submit 2 button to be active if none of the other buttons are selected, I created a trigger that when the state of all of the buttons are not selected (normal) to control this.
When I preview this slide, the triggers work correctly.
When I preview the entire scene, the user has to select two of the buttons before the Submit 2 button becomes active.
Is this a bug or am I doing something wrong?
Thank you,
Andy
As KendalRasnake-1 said, you could just set the Initial State to Disabled.
For future reference: All the built-in states are based on the Normal state. So instead of using the condition "= Normal," it's better to use "≠ Selected."
- KendalRasnake-1Community Member
Hi Andy,
Can you select the Submit 2 button, select States, and then set the initial state to Disabled? If so, you might be able to delete your 2nd trigger.
- AndyWells-fa87cCommunity Member
Thank you for your recommendation but the initial state is set to Disabled.
- JudyNolletSuper Hero
As KendalRasnake-1 said, you could just set the Initial State to Disabled.
For future reference: All the built-in states are based on the Normal state. So instead of using the condition "= Normal," it's better to use "≠ Selected."
- AndyWells-fa87cCommunity Member
That worked! Thank you.
- JudyNolletSuper Hero
You're welcome!
Using "≠ Selected" (or ≠ some other built-in state) instead of "= Normal" is one of those little things that make a huge difference.
Best wishes with your projects. Pay it forward when you can. 🙂
- KendalRasnake-1Community Member
Andy,
Sorry if I assumed you hadn't tried the initial state and insulted your intelligence.
Glad you got a solution.
- NedimCommunity Member
Your second trigger won’t work unless all states—such as Hover, Down, and Visited—are removed from each button. However, I assume you’d like to keep those states. It seems that you haven’t placed these buttons in a button set, which would make them behave like a group with only one selectable at a time. Anyway, the second trigger should look like the example below, with the Submit button initially disabled.