How do I activate the text entry box without using a mouse to click on the text box? | XM Community
Question

How do I activate the text entry box without using a mouse to click on the text box?

  • 26 November 2020
  • 1 reply
  • 3 views

Hi,
I have set up a survey which involves respondents viewing a picture and typing a response in the text entry box. I would like the text entry box to activate as soon as respondents enter a page on the survey so that they can type responses immediately and without having to move the mouse cursor to click on the box to type. This will help the survey be more efficient as reaction times are recorded.
Does anyone have an idea on how to achieve this, or if there is a specific code I can use to activate the text box?
Thank you


1 reply

Userlevel 7
Badge +21

You can use this code in the addonLoad function:

document.querySelector("#QR\\\\~"+this.questionId).activate()


Leave a Reply