States based off of variable

Feb 10, 2013

I am trying to create a tool on a slide where the user clicks up to five buttons with various choices. The idea is that on the layer I created on that same slide, a chart with outcomes would be changed based off of what the user originally selected. So, for example, which of these are your favorite colors? You click up to five buttons and then you click submit. On the displayed layer, you would see those same colors with a check mark on a chart with additional information. Kind of a "based on your selections, this is what we recommend". I've got the first slide with the buttons changing to Visited and a variable changing to True. The problem I'm having is that when I see the layer, only the chart displays, not the corresponding checks for the clicked buttons. Those buttons have a trigger to show the check mark on Image X if the variable is True. But they aren't displaying. Help!

6 Replies
Nancy Woinoski

I think you need to add the check marks to the layer that contains the chart. You should set the state to hidden for each of these check marks. 

Then I think you need to create a separate true/false variable for each of the checkmarks.

on the main slide you need to attach a trigger to each of the buttons to change the variable when clicked. So for example, if clicking the first button means you like the colour red then you need to add a trigger that says change state of variable red to true when the button is clicked.

then on the slide layer with the checkmarks you need to add a trigger to change checkmark red to normal when the timeline starts and then add the condition "if variable red is equal to true"

you have to do this for each checkmark.

Nancy Woinoski

Hi - I made a couple of adjustments to your file and it now works.

Not sure why, but your file was showing that you were calling the varible twice on the slide layer so I deleted the trigger that you had and then added it back in and it works fine.

Also, one other thing - you don't need a trigger to change the button state to visited on the main slide - storyline will change the state automatically as soon as the user clicks the button.

This discussion is closed. You can start a new discussion or contact Articulate Support.