Variables and Triggers
Aug 07, 2017
Hi,
I'm having a little bit of trouble with variables. The goal is to have the user input some sort of text by our directions and click enter on the keyboard to set off the trigger.
So I have jump to next slide, when the user presses the enter key, if textentry is equal to, ignore case, residential.
Thinking the user would input residential, select enter and it would jump to the next slide or not let them move on and I could have a warning layer pop up.
I'm finding that I have to select enter on my keyboard twice for this trigger to work with the variable.
Has anyone done anything like this? Please help. :)
Thanks,
--Jes
6 Replies
Hi Jes
without knowing which version of SL you are using and whether the TE field is part of a simulation, graded quiz (FIB) or freeform quiz (text entry) or just a content slide with a text entry field this KB article may help.
If not, can you share the slide and someone can take a look for you
Hi Wendy,
Please check out the file I have attached.
Thanks,
--Jes
Hi Jes
in order for SL to validate what has been entered into the text entry box - the control must lose focus - which means the user clicks somewhere outside the TE box SL says 'yes' correct answer then the next action happens - this is why it is taking two presses of the enter key to move on.
The first Enter validates the entry, and the second Enter does the trigger action. So as per the KB article you need to add another trigger
See updated file attached...hope this helps
Thanks Wendy, I will give it a try!
You rock at life!
Thank you for all your help and the quick reply.
--Jes
Glad that worked for you Jes...good luck with your project!
This discussion is closed. You can start a new discussion or contact Articulate Support.