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

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

  • Nov 19, 2021 7:03 PM UTC
  • 1 reply
  • 59 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 ●●●●●●
  • Jan 8, 2022 2:02 PM UTC

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