Forum Discussion
Prevent enter key from submitting text entry for evaluation
Hi,
I am having a problem with the text entry. I would like the learner to be able to type a longer text into the text entry box. When he presses 'enter', a line break should be created within the text entry box. However, as soon as the learner presses the enter key, the text is automatically submitted and the learner is moved on to the next slide. Is there a way around this? I deleted the 'next' and 'submit' button and created my own submit button, but this didn't work either. Can anybody help? Thank you.
Sabine
- RebeccaFleischCCommunity Member
Hi Sabine,
Is this on a question slide or a regular content slide?
This support page may help to answer your question, but briefly, for these data entry questions, pressing enter is = pressing Submit answer
- Graded: Fill in the Blank
- Graded: Numeric
- Survey: Short Answer
- Survey: How Many
- Freeform: Text Entry
If you use an Essay Question, Learers CAN use ENTER for a line break.
And if you're using just a data entry field on a content slide, making the text entry box taller should allow Learners to press ENTER for a line break.
Also, if your Learners are moving to the next slide automatically, check the slide properties. If the slide is advancing automatically, you can change it to By User.
- Sabinede-Kamps1Community Member
It was a question slide. I now added a large text entry box to a content slide instead and it works.Thank you very much Rebecca.
- RebeccaFleischCCommunity Member
Very cool, Sabine!
- AbhishekDasg489Community Member
Hi,
I am having the same issue as well. We have added a pretty large text entry box in the question slide for the user to input their answers. I also created custom submit button for submitting the answers. However, whenever the user presses Enter key in the text entry box, instead of adding a new paragraph, its taking to the next slide. We have already selected Slide Progresses by user.
Any help will be much appreciated.
Thanks,
Abhishek
Hi Abhishek! Did you check out Rebecca's response above? What type of question are you utilizing?
- AbhishekDasg489Community Member
Hi,
I did check her response. Unfortunately, its not working. We have tried increasing the size of the text box as well. However, as soon as the Enter key is pressed it takes to the next slide.
We are using freeform question. We want the user to enter multiple paragraphs in it which needs to be graded. Otherwise we could have used the survey type question which allows us to enter essay and allows the enter key to insert a new paragraph.
I have also tried using a variable to capture the text entered and if there is no value entered in the text entry it can open up a new layer which acts as a pop up saying invalid answer. However, the challenge I am facing is when there is already a sentence or paragraph entered and then the user presses the enter key to get a new paragraph. Can we somehow customize that as well?
Thanks,
Abhishek
The free form text entry treats the enter key as submit as you can see here. Would you be able to provide a sample file of your .story project for us to take a look at?
- AbhishekDasg489Community Member
Thank you Abhishek! I wanted to be sure that we were on the same page.
There is not a built in way to do what you are asking. The Enter key submits this question type.
I'm not sure if someone in the community has a creative way to handle this differently.
Even if you place a warning to the learner, I'm sure that they are still going to hit the Enter key as it is only natural when typing.
You are welcome to submit a feature request here.
- LeonoraBular820Community Member
I am having the same issue as Abhishek. Has any solution been discovered?
- ChristiePollickCommunity Member
Hi, Leonora -- Thanks for reaching out here! It doesn't appear that we heard back from Abhishek with a solution he discovered, but as this discussion is a bit older and he may no longer be subscribed, you are welcome to reach out to him via the "Contact Me" link on his profile page to inquire directly. And while I am not aware of a solution that has been discovered for his issue, if you would be interested in sharing your file, perhaps your peers might be be able to take a look and offer additional ideas based on your current set up.