Solved
Recording reaction time with space bar (but for text entry NOT multiple choice)
Hi,
I'd like to record the time it takes participants to press the space bar without it moving on to the next page. I'm doing Remote Associate Tests and would like the option for the participant to press the spacebar when they have come up with the solution, then they can type it out. As Qualtrics only seems to time how long you're on the page for, I'd like to incorporate this key press RT so I know how long it takes for them to think of the answer (not just type it out).
What I've found on this forum and others is a code along the lines of...
Qualtrics.SurveyEngine.addOnload(function() {
var qid = this.questionId;
document.onkeydown = function(event) {
console.log('keydown',event);
if (event.which == 32) {
event.preventDefault();
jQuery('#NextButton').click();
}
}
});
However this doesn't seem to be working. Most of the codes I've seen are for multiple choice questions, but all of mine are text entries.
I'm a real novice with Javascript, so any advice would be very welcome!
Thanks
Best answer by fleb
> @icer_j said:
> Hi @fleb,
>
> I've done all of the above and it is still empty in the data. In Data & Analysis the column was missing entirely
Hi @icer_j,
I have checked the code again and it worked. In case you have defined the column manually in the survey flow, it should be there in any case. If the script were wrong, the column should be empty but not missing. Isn't it just hidden? If you aren't sure, try to check it like this.
!
Otherwise I have no more ideas where could be the problem, sorry.
Otherwise I have no more ideas where could be the problem, sorry.Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
