Answer via the keyboard in a multiple choice question with 2 options | XM Community
Skip to main content

Hi everybody :)
I created an experiment that tests working memory in which digits are presented quickly (a lot of them, 38 digits in 3 different blocks), and responding via the mouse is very slow for this.
I want to allow my subjects to respond using the keyboard with the letters "M" for an appropriate response, and "X" for an inappropriate response - currently the options appear horizontally with M being the response to the right answer.
After wandering around the various forums, I realized that I need to write code in JAVASCRIPT but I don't understand writing code at all.


I would appreciate help!

I came across this question in the forum - but I still can't find a way to adapt this code to me:

https://community.qualtrics.com/custom-code-12/use-keyboard-for-answering-multiple-choice-question-8398?postid=25171#post25171

 

 

Hi 🙂 Can you share how the question looks like and what is the desired outcome?

It will help providing you the correct code


Thank you very much for your willingness to help!


This is an N-BACK task. Subjects are presented with digits one after the other, and when a digit is presented, they need to see if the digit matches the one presented  2 digit before it. Each digit was created as a multiple-choice question with 2 options presented to them horizontally, one with a green circle emoji for the correct answer (on the right) and the other with a red circle for the incorrect answer (left) - I attach a picture for illustration. they also have timing Q for each digit.


Because I have digits, I am not sure what the correct way to use the code (should I enter a new code for each digit?)

 


Leave a Reply