Forum Discussion
Help for interaction in text insert field
Thank you for your answer Nathan_Hilliard.
Is isn't a problem I need to copy it four times to check every digit?
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.
- ClaudiaGlase2 months agoCommunity Member
Hi Nathan_Hillard,
I used your solution on a separate slide and it worked almost perfect. Then I have imported it into my quiz and it didt't work any longer.
By not knowing java I suggest it have to do with the trigger to set inputTagName on input_1. Where is this variable defined in your solution?
I would share my story but it is 167 MB large!
Best regards
Claudia
- Nathan_Hilliard2 months agoCommunity Member
Find the text entry box's entry in the timeline panel. Right click on it. Select accessibility. Look at the box showing the alternate/accessible text. Set the inputTagName variable to the same value as the alternate text value.
- ClaudiaGlase2 months agoCommunity Member
Okay, that is correct but it still don't work.
Do you have another idea what could be the mistake?
Your slide uses different variables than my story. so there should not be same mixed up.