Use "Enter" to submit a question | XM Community
Skip to main content
Solved

Use "Enter" to submit a question

  • March 21, 2018
  • 1 reply
  • 264 views

Forum|alt.badge.img
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

Best answer by TomG

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.

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6084 replies
  • Answer
  • March 21, 2018
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.