Hello, Javascript Newbie here!I am programming an experiment where people see stimuli and have to decide if they are the same or different - and for this they press 1 and 2, respectively. Participants see the stimuli for a set of time and then are presented a multiple choice with the two options; I specifically want them to use the keys, instead of just using the mouse. I want the next trial to start whenever one of the two keys is pressed. In the end, I want the database to have their answers recorded - that is what I am struggling with! The field for the answers always comes out empty.Through foruns here and there, I put together the following code. Can you help me out? What should I change so that when I download the data I can see whether participants pressed 1 or 2?Qualtrics.SurveyEngine.addOnload(function(){this.hideNextButton(); //Blocks from advancingthis.hidePreviousButton(); //Blocks from retreatingvar that = this;Event.observe(document, 'keydown', function keydownCallback(e)
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.