Use "Enter" to submit a question | XM Community
Solved

Use "Enter" to submit a question

  • 21 March 2018
  • 1 reply
  • 166 views

Badge
Hello everyone :)

I am still working on the word completion task where the participants get a new entrybox every 6 seconds. Now, thanks to the community, I was able to implement the custom code to have the entry box preselected.

To increase the convinience for my participants even further, I wonder whether it is possible to submit an answer by pressing the "Enter" key on the keyboard (instead of clicking on the arrow with the cursor).

Can this be implemented?

Thank you
Jonas
icon

Best answer by TomG 21 March 2018, 13:27

View original

1 reply

Userlevel 7
Badge +27
Yes, use JavaScript to add a 'keydown' listener that clicks the NextButton when enter is pressed. There are many examples if you do an Internet search.

Leave a Reply