Thanks!
Thanks ahmedA. I've tried this, but it hasn't worked. Each question is presented in a different block, each block contains a picture, a multiple choice question, and a timing question. Under which question should I place this code? Thanks for your help!
I'm very late to this, but I'm hoping I can still ask a question about the code. I'm designing a similar experiment. I would like participants to respond in this same way, but instead of the page advancing after they respond, I have a timing question such that the item remains on the screen for a few seconds (even if the participant responds). Which component of this code is associated with advancing the page? I will use the code without this component.TIA, Hannah
Hi all, I'm clearly a bit late to the party. mattyb513 i'm using the code you offered in the above thread, changing the arrow up/down keys for the keys V, B and N. I would like participants to respond v, b, or n, which are associated with a different answer. I've edited the code (below) to add an additional key. Is this correct?I'm also wondering if there is a way to apply this code to multiple blocks at once (rather than going into each and inserting the code)? TIA,HannahQualtrics.SurveyEngine.addOnload(function() { var qid = this.questionId; document.onkeyV = function(event) { console.log('keyV',event); if (event.which == 86) { event.preventDefault(); Qualtrics.SurveyEngine.registry[qid].setChoiceValue(1, true); jQuery('#NextButton').click(); } else if (event.which == 78) { event.preventDefault(); Qualtrics.SurveyEngine.registry[qid].setChoiceValue(2, true); jQuery('#NextButton').click(); } else if (event.which =
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.