Storyline: How the Enter Key Behaves in Data-Entry Fields

Article Last Updated

This article applies to:

Here's how the Enter key behaves on question slides and content slides in Storyline.

Question Slides

When there's a data-entry field on a question slide, pressing the Enter key on the keyboard submits the learner's response for evaluation. In other words, pressing the Enter key is the same as clicking the Submit button. This applies to the following question types:

  • Graded—Fill in the Blank
  • Graded—Numeric
  • Survey—Short Answer
  • Survey—How Many
  • Freeform—Text Entry

Since essay questions are likely to have multiple paragraphs, the Enter key adds a line break (return) rather than submitting the learner's response.

Content Slides

When you add a data-entry field to a content slide, two things automatically happen:

  • Storyline creates a variable to hold the data that the learner enters.
  • Storyline also creates a trigger that sets the value of the variable to whatever the learner types in the field. This occurs when the control loses focus.

And here's what happens when learners press the Enter key on content slides with data-entry fields:

  • If the data-entry field is tall enough to accommodate more than one line of text, the Enter key adds a line break (return), so the learner can start a new paragraph. For example:
  • If the data-entry field is only tall enough for a single line of text, the Enter key submits the learner's response and assigns it to the variable. For example: