Forum Discussion
Function Keys Interactivity in Storyline Using JavaScript
Hi to all the smart people on this thread. I recognize all of you from other places in the community.
I just was directed here by Joe Tansengco and I can't figure out how to apply the insights here as my javascript skills are limited. I tried following the conversation but I can't untangle it.
I am working on a free form question interaction that is a text entry question. I noticed that if I hit the Enter key to advance to a new line within the text entry box, the "Thank you" layer pops up prematurely. I was hoping there would be a way to avoid this or disable the enter key for this interaction. I think learners may hit Enter to advance to a new line if they are typing. We are not trying to track the response as correct/incorrect so I just chose a "Thank you" layer once the interaction is completed. As I understand it, my client's LMS has the capability to see what people have typed--they don't need it graded, they just want visibility into what people have typed. Maybe I just have my question set up incorrectly. If there is a better way to do this, I'm open to it. I was even looking at using the built-in survey question as an alternative. Any ideas? I attached my file for reference. Thank you!
Hi Jodi,
First i tried to get it fixed using Javascript, but soon noticed that especially the built-in questions in Storyline are very tied up in the code of Articulate, thus sometimes hard to change. So i reworked your sample to using a normal input textfield...and then it works nice without any need for Javascript.
Basically i just added a normal textinput field and used the data in that to change the values of the question textArea input. Then internally the submit doesnot get triggered and all works fine.