Controlling slider in slider question by using arrow keys and submitting by pressing enter | XM Community
Skip to main content
Question

Controlling slider in slider question by using arrow keys and submitting by pressing enter

  • November 19, 2021
  • 1 reply
  • 41 views

In a question of type slider (just one statement with 9 scale points) I would like to make the slider controllable by using the left and right arrow keys. Finally, the answer should be submitted by pressing the enter or return key. While I have a clue how to do the submitting (https://stackoverflow.com/questions/39534582/qualtrics-pressing-enter-key-to-emulate-continue-button), I don't know how to accomplish controlling the slider by pressing keys.

1 reply

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • January 8, 2022

Check the pressed key code as 37 and 39 for left and right keys respectively and accordingly update the slider value using JS.