Forum Discussion
Disabling the Enter Key for Text Interactions
I am working on a project, where I need the user to press a hot key F8, instead of the Enter key to submit the interaction. We changed the submit key to F8, but the enter key will still submit the text entry. Is there a way to disable the enter key?
30 Replies
Hi Alecia,
It sounds like the "enter" key is the submission trigger for your interaction? If you have feedback layer set up, it should be showing those instead of jumping directly to the next slide. If you're able to share a copy of the .story file here, even just a few slides we're happy to take a look.
Hi Alecia,
Replying via email includes your signature here, so you're welcome to edit and update the post if you'd like to remove that information. Also it does not upload attachments, so you'll need to visit the forum thread to post the .story file here.
- AleciaEdmonds1Community Member
Hi Alecia,
Thanks for sharing your file here. First off, it doesn't seem it's just the enter key causing this behavior, but using submit also didn't show your feedback layer.
I looked at your course settings, and noticed that you were not setting the questions to show feedback, and therefore it was navigating to the next slide no matter what. If you enable "feedback" by question - you'll see it creates a layer automatically. You can either use this layer or customize it to fit your needs. Also, I added a trigger to show the feedback layer you've created based on the user clicking "enter" and that worked correctly. So with that there are a few different paths you could take here and it all depends on what behavior you'd like in the end. Are you reporting this to an LMS? If so, you'll also need a results slide to track all the information.
Take a look at the changes I made to the first text entry slide in the attached version.
- EdCrane-1026e64Community Member
Hi Ashley,
If the number of attempts is set to 2 for a question, should the Enter key then cause the Try Again layer to show when pressed after an incorrect entry? The behavior I'm seeing is that it does not, it shows the Incorrect layer.
- HannesGelden493Community Member
This thread is over 2 years old and there is still no solution. Is there a way to remove it from the Javascript after you have exported the file?
Hi Hannes,
There isn't a function to disable the enter key as a submit for text entry. I'm not sure what you're looking to remove in the Javascript, but I'll have to leave that to the community as it's not something I'm able to help with!
Hi Ed,
The Enter key would submit the question/text entry if it's at the end of the text entry box and there isn't space to start a new line. You'll see this described here.
If you've set it for two attempts, you should still see the Try Again layer, so it sounds like we may need to take a look at your .story file to check out the behavior.
- TJBarber-86bdedCommunity Member
This is not correct anymore, I'm guessing since the text fields changed to add scrolls if they ever go over. But now whenever a user clicks enter in a text field it adds a paragraph break, regardless of field size.
Hi T.J.
This thread is over two years old, so there is likely information that is now outdated. Using the Enter key adds a paragraph break in text entry fields. It doesn't cause the text entry to lose focus when the value of the text entry field changes.
Let me know if you have additional questions.
- MatthewJones-c7Community Member
Hello,
I am quite new to Storyline and using STORYLINE 2. Does anyone know if this issue has been resolved or if there is a workaround please?
I have used a similar elearning tool (Assima STT) and it had the function to remove the need to press enter and would love it to be in Articulate.
Hi Matthew, and welcome to the Storyline crew!
If you're using a text/data entry field, the enter key will behave as described here. I know some folks have looked at creating a larger entry field so that if learners did press the enter key it would only advance them to the next line vs. submitting the question. Would that work for you?
If you need some other ideas, can you share more details on your set up and needs?
- JimDeRosaCommunity Member
I am having this issue currently with Storyline 360, and am not seeing the behavior as described in the link you provided. My multi-line text entry field automatically submits the interaction when the enter key is pressed rather than inserting a carriage return.
Can you provide more information about how to force it to work as described?
Hi there, Jim. If you're using a question slide, the Enter key will submit the response every time (unless you're using an essay survey slide). On a content slide with a text entry field, however, the taller fields will allow for the carriage return rather than submitting the text.
This example course includes a content slide, a graded fill-in-the-blank slide, and a short answer survey slide for comparison. What kind of slide are you using, and what kind of information are you looking to capture?
- MatneyJorgen005Community Member
I am having an issue similar to the ones in this post but a little different. I am trying to stop users from entering an answer that has already been entered. I did this by adding a trigger that checks for previous answers and then shows a layer to indicate to the user that the answer has already been used.
My issue is that when the user clicks on the submit button on the 2nd question, the interactions works as I have intended. If the user simply hits the enter key, somehow, my added trigger is bypassed and the answer is accepted as correct even if it has already been used in a previous question.
I am attaching my file to see if anyone has any suggestions. The acceptable answers are budgeting, banking, insurance, mortgages, investments, retirement planning, and tax and estate planning. Any help would be greatly appreciated.
- JenJennifer-a84Community Member
Add another trigger for all the triggers that show already entered layer and make the modification to this new trigger to show already entered layer when user presses a key "enter" with same conditions. Refer to the story file attached, i have added the new modified trigger for banking. similarly add it for all other fields as well.
- MatneyJorgen005Community Member
Thank you so much for your idea. These adjustments have forced my layer to appear, but then the slide seems to get stuck in some unknown state. I am not able to change the answer to something else or submit the question again.
Related Content
- 10 months ago