Layers and submitting text entry box

Hi, I have created a correct and incorrect layer that appears once the submit button is pressed. The layer is pulling up with a automated message telling the participant they must enter text in the entry box before moving forward. Both messages are pulling up at once as in the example below.

I need a type of condition or variable that prevents the correct or incorrect layers to appear if the participant has not typed anything.

6 Replies
Patti Bryant

Hi Shannon!

To confirm - must the learner do TWO things before submitting? 

  1. Select 'Accept' or 'Reject'
  2. Type their response

Or, can they just type their response? If they DO need to do 2 things, could this be split into 2 questions (2 separate slides) or does it need to be all on the same slide?

Keepin' the joy,
Patti

Patti Bryant

Shannon,

If you need both of these to be done prior to submitting, I've provided a solution that may work for you.

I attached your original file (removed all slides except 2). I added slide 1.2 to show you how it would work. You'll notice when you select a response and then submit, you'll receive an 'incomplete' error. 

Here is what I did:

  1. Inserted a new slide: Multiple Response
  2. Added a text entry box
  3. Created a variable titled 'DecisionSupport' = to FALSE
  4. Adjusted the variable 'DecisionSupport' to TRUE if the text entry box control loses focus
  5. Created triggers when learner selects submit: 1) Submit the interaction if DecisionSupport is TRUE and 2) Show Incomplete layer if DecisionSupport is FALSE.

Also, as a side note, your timeline is super long (300 seconds each slide), which could impact course performance. It can slow down the course and make it larger, so I'd recommend making the timeline much shorter (5 seconds or so).

If you have any questions about what I did, please let me know. Happy to help!

Keepin' the joy,
Patti

Patti Bryant

You're very welcome, Shannon!

I'd create a new multiple response slide for each. The current way the questions are setup aren't for multiple response - it's been setup manually, so that could cause some issues.

Does this need to report properly, to an LMS? If so, you may want to test this as is to make sure it works properly. You may need 2 quiz question slides for each question: 1 multiple response slide and 1 text entry slide. If it doesn't need to report the text the learner enters, you could get away with the one combined (multiple response and text entry) slide.

Let me know if you have any further questions or if I've simply confused you further. ;)

Keepin' the joy,
Patti