Pressing Enter on Fill-In always submits even on feedback

Jan 16, 2013


I want to limit attempts on fil-in questions to two attempts. However if the user presses the Enter key it always submits. The problem is that if the user enters their first response, presses Enter and receives feedback, then if the user presses the Enter key to dismiss the feedback dialog, then the 2nd attempt at the interaction is already consumed.

Is there any way to prevent automatic submission with the Enter key? I tried setting a different submit key in the question editor, but it still submits on Enter.


13 Replies
Rebecca Fleisch Cordeiro

Hi Dane,

I went about this a bit differently.

First, I changed the number of attempts to 3.

Then,  I went to the Try Again layer and added a trigger to hide the layer when the Learner presses enter.

I think this did it. Here's what I do:

  • Answer the question incorrectly and press ENTER
  • The Try Again prompt appears and I press ENTER again
  • The prompt goes away. I change my answer and press ENTER again.
  • If I answer incorrectly, the incorrect prompt appears; correct prompt if I answer correctly.

Let us know if this does the trick.

Rebecca Fleisch Cordeiro

Oh, I didn't realize that was your goal. Of course, it makes perfect sense.

It seems that Enter is automatically "firing" the Incorrect layer, so it's as though it's setting the attempt count to 2. Even when I try to play with the attemptcount variable or create a count variable that jumps to the base (and sets it to initial state), nothing works.

Upshot, I've tried a number of things. I'm wondering if it's a bug that should be reported. Perhaps someone can confirm or refute...and even come up with a workaround. I think it's a good question.

This discussion is closed. You can start a new discussion or contact Articulate Support.