Forum Discussion
MathewBlackstoc
5 years agoCommunity Member
Fill in the blank Quiz question - Enter button behaviour
Apologies if this have been answered previously, but I couldn't find anything that matched exactly the issue I was having.
I'm using a fill-in-the-blank question with 2 attempts.
If my learner ...
SamHill
5 years agoSuper Hero
I've confirmed this on my side too. This looks to me like a bug worth reporting.
In the meantime, I have a solution that you can use to ensure the focus is taken off the input form so it does not re-submit when hitting Enter.
In your Try Again layer add a JavaScript Trigger to "When the timeline starts on this layer".
Add the following line to the JavaScript input box.
document.getElementById("focus-sink").focus();
This should do enough to get the focus away from the form, and ensure the user can only interact with the Try Again layer.