Forum Discussion
Help for interaction in text insert field
Look at this post: variables with text entry help | Articulate - Community
Pay attention to the attachment named: InputBoxEvent_2a.story
This updates a SL variable with the current contents of the text entry field, as the user types. You change use a trigger to do something when the variable matches the text string you are interested in.
- ClaudiaGlase2 months agoCommunity Member
Thank you for your answer Nathan_Hilliard.
Is isn't a problem I need to copy it four times to check every digit?
- Nathan_Hilliard2 months agoCommunity Member
The script updates a value called inputBoxValue as the user types. To do something when a specific value ha sbeen typed, just create one or more triggers to watch that variable for changes. For example, if your target code is A1234, create triggers similar to this:
Do something (like open a layer)
When inputBoxValue changes
if inputBoxValue = value A1 (or A12 or A123, etc.)
Else do something else (if needed)If you are just showing layers or opening a lightbox, then you can continue to return to this same text input box. If you need to navigate away from this slide and resume checking on another different slide, then yes you would need to include the script trigger that fires when the user clicks the text entry. Just include whatever trigger matches you need for inputBoxValue on that new slide.
- ClaudiaGlase2 months agoCommunity Member
Thank you very much. Your tweet helped a lot.
I realized it by creating triggers to show an image oder hide it. So I don't need to navigate from the slide. It looks quite nice and very similar to the plattform I wanted to recreate.