Variables conditions not working
Sep 01, 2015
Hi everyone,
I'm trying to build a scavenger hunt-type game using text entry variables in Storyline. Basically, if a user enters the correct answer in the text field, I want a green checkmark to appear. If the answer is incorrect, I want a red X to appear. I've been able to get this to function the way I want except when there is more than one possible correct answer to a question.
For example, in the attached file, under the 'competencies' section, correct answers for question 1 are development resource guide, development resource guides, or DRG. I've set the variable using the 'or' condition, but when I preview it and enter one of the correct answers, the checkmark doesn't show up. I'm not sure if I'm missing a step for using the 'or' condition. Any suggestions would be greatly appreciated.
3 Replies
Hi Adrienne,
Instead of using the trigger "when variable changes" use the "when control loses focus" on that text entry. Once the user clicks outside the text entry field and the variable is adjusted the check mark will appear.
Thanks Ashley, that seems to have fixed the problem!
Perfect - the "when variable changes" can be a tricky one - as it's looking for that change to occur on that exact slide and sometimes misbehaves (or in a way we don't expect).
This discussion is closed. You can start a new discussion or contact Articulate Support.