Use "Enter" to submit a question | XM Community
Skip to main content
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
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