I am making an experiment that requires participants to make a judgement on a photograph. As a multiple choice question, they either press "F" for yes or "J" for no and after 10 seconds, the page moves onto the next photograph. Though I am able to see whether they pressed "F" or "J", I am not able to see the time at which they pressed the key. Is there something missing from the code? I'd really appreciate any help!Qualtrics.SurveyEngine.addOnload(function(){ this.hideNextButton();this.hidePreviousButton();var that = this;Event.observe(document, 'keydown', function keydownCallback(e) {var choiceID = null;switch (e.keyCode) {case 70: // 'F' was pressedchoiceID = 1;break;case 74: // 'J' was pressedchoiceID = 2;break;}if (choiceID) {Event.stopObserving(document, 'keydown', keydownCallback);that.setChoiceValue(choiceID, true);}});});
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.