Forum Discussion

JacobStewart-7e's avatar
JacobStewart-7e
Community Member
2 years ago

Forcing Text Entry field selection on slide display.

I'm trying to put the focus on a text entry object so that the learner does not have to click on the field.

I've changed the tab order of the field to the top position, and when the learner clicks tab, the cursor is placed in the selected text entry field.

Is there a way to make the text entry field "pre-selected" either through trigger or another slide configuration?

  • SandeepGadam's avatar
    SandeepGadam
    Community Member

    Hi Jacob Stewart, you can achieve this by using the following Executive JavaScript code: document.querySelectorAll('.acc-textinput')[0].focus();

    • Susanne's avatar
      Susanne
      Community Member

      Thanks @sandeep , I had the same question and this works!