Changing State of Oval When User Clicks on Button on Another Slide

Dec 06, 2022

Hello,

I'm creating a short quiz with a list of terms. I'd like the learner to be able to see which term they got correct and incorrect. 

Right now, there are blue circles next to each term. I'd like the circle to change color based on whether they got the answer correct and incorrec.t

I created two variables for each term (example: RevenueCorrect and RevenueIncorrect) and when each layer is clicked, it's set to change that particular variable to True (ex: learner clicks on the button to show the correct layer it changes variable of RevenueCorrect to True). Then I have a trigger set to change the circle to the Correct state if the RevenueCorrect variable changes.

The colors aren't changing. I know I'm missing a step here. Please advise. Thank you!

2 Replies
Judy Nollet

Based on the title of your post, the button that changes the variable is on a separate slide from where the ovals are. That's the problem. Storyline can't change something from a distance (that is, from another slide). When you go to the slide with the oval, the "when variable changes" never happens. All triggers need a "when" that occurs on the slide where the trigger is.

Variables are available from all slides. To fix your problem, edit the triggers to change the state of the oval when the timeline of that slide starts, and include a condition that checks the value of the variable. 

BTW, you only need 1 variable per term. Just use a T/F variable, set to True for correct and False for incorrect. Then the trigger to change the associated oval would look something like this: