Forum Discussion

MichaelJeffcoat's avatar
MichaelJeffcoat
Community Member
5 days ago

Set Focus, I need assistance

I created the attached Story to encourage learners to answer questions related to a 'method' for solving a payments participant-related conundrum. Using 5 data input fields, I can capture the learner's input, and I have some JavaScript worked out to validate the input matches one of the acceptable answers. 

Because there are no object states for data input fields and I did not want the learner to go back a question and change their answer, I used triggers to reveal each of the 5 questions in turn and freeze the answer for previously asked/answered questions.

Problem is I cannot get the focus set programmatically. 

All suggestions are welcome. 

1 Reply

  • I can see what you're going for with this slide but one issue is that because you can't actually disable the text entry fields, even when they're covered up, a user can technically still tab to them and start typing. When they're done with one field, most learners will either look for a way to move forward or, if they're familiar with filling out online forms, they're going to try to press tab. And the tab is going to go to the next data entry field, which are covered up by rectangles. So setting the focus won't help much.

    I would try using 5 separate questions but make it look like it's one slide by hiding them from the player menu and not having a submit button or feedback layers. I mocked up an example for you and it's attached here.