Forum Discussion
Change state of multiple buttons with clicking just one
Hello,
I'm building a training program to identify parts on the various types of forklifts. I want the button on each type of forklift to change to selected when just one is clicked. For example, if the learner clicks the Tilted Mast button on the sit-down forklift, the Tilted Mast buttons on the Stand Up and Reach forklifts will also change to selected as all three buttons takes the learner to the same screen to learn about that part. I cannot figure out how to build the triggers to make this happen.
Any suggestions are appreciated. I found one post that spoke about using a True/False variable, but it's too high level for me to understand as I'm new to Articulate and haven't used variables in the past.
Thank you!
- JudyNolletSuper Hero
When a button has a Normal and a Selected state, it automatically changes to Selected when clicked. It will also change back to Normal (or to Visited, if it has that state) when it is clicked again.
- Here's more info: PRIMER: Take advantage of built-in states | Articulate - Community
To me, the easiest solution for your situation is to put the three associated markers for a given part into one button with Normal, Selected, and Visited states. This would be done by starting with one object, then pasting other objects directly into its Normal state (placed as needed anywhere on the slide), and then creating the other states.
- Here's more about working with states: Storyline 360: Adding and Editing States | Articulate - Community
- This might also be helpful re: pasting objects into a state: TIP: Making icons easier to program and easier to click | Articulate - Community
When you have all of those buttons created (i.e., one for each part), put the buttons into a button set. That will automatically control the selection/deselection as the user clicks through the interaction.
- Here's more about button sets: Storyline 360: Working with Button Sets | Articulate - Community
The attached file demonstrates this. Hopefully looking at that will help clarify what I'm talking about. FYI: To select a button while your editing the file, you have to click the original/main object. The objects pasted into a state and moved to another location can't be clicked. You can also select any object for editing by selecting it in the Timeline.
Another option would be to add triggers to each button that change the state of associated buttons to the appropriate state. Those triggers would need conditions (probably easiest with a variable) to control the toggling behavior, so it might be easier to use a custom state, e.g., "Current." Then each of the associated buttons would have triggers to change all of those buttons to "Current" when one of those buttons is clicked.
You'd also need triggers to change buttons back to Normal when any button associated with a different part is clicked.
By the way, it's worth the effort to learn about variables and condition. They provide the real power in Storyline.