Fill in the blank Quiz question - Enter button behaviour

Aug 31, 2020

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 gets the first attempt wrong, they are sent to the 'Try Again' layer.

So far so good, BUT if the learner hits the Enter key while on the 'Try Again' layer (instead of clicking the 'Try Again' button) Storyline 360 thinks thay have made another attempt at the question (even though the Try Again layer is still open), uses up their 2nd attempt and marks the entire question as incorrect!

Has anyone else come across this before, and if so how did you fix it?

Is there any way to disable this 'Enter' button behaviour?

Tanx :)

 

7 Replies
Sam Hill

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.

Ren Gomez

Hi Matt and Sam,

Thanks for bringing this to our attention, and thanks for the workaround Sam!

We do have a bug reported where using the Enter key from a text-entry box to trigger show/hide layers is recording an Incorrect input.

As you can see from the image below, the text-entry is still selected even though the Try Again layer has popped up.

I'm sorry you're running into this error, but we'll be sure to notify you in this discussion once a fix is in place! In the meantime, see if Sam's workaround will work for you!

Ren Gomez

Hi Matt,

Good news! We fixed the issue where using the enter key from a text-entry box to trigger show/hide layers, it records an incorrect input.

Here's how to install the latest Storyline 360 update to see all the recent enhancements and fixes.

If the problem reappears, please connect with our team, or share a screen recording here, and we'll be happy to help!

Jose Tansengco

Hello Emily, 

Sorry to hear that you ran into this issue. 

The bug mentioned in this thread was already fixed some time ago, so there's a possibility that something else might be causing the issue you're experiencing. 

Would you be willing to share a copy of your project file here or in private by opening a support case so we can take a closer look at what's happening? We'll delete it when we're done testing!