Forum Discussion
Help for interaction in text insert field
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.
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.
Related Content
- 12 months ago
- 12 months ago
- 12 months ago