Question
Javascript Responses not Displayed in Exported Data
Hi everyone,
I am not java savy, and this is also my first time using Qualtrics. I have a question that displays a picture and participants press "1" or "2" for unpleasant and pleasant respectively. Their responses (which number they press) do not appear in the exported data such as spss or excel. How do it get it to show up? What do I need to add to my code and what do I do in my survey flow?
Here is my code:
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 49: // '1' was pressed
choiceID = 1;
break;
case 50: // '2' was pressed
choiceID = 2;
break;
}
if (choiceID) {
that.setChoiceValue(choiceID, true);
that.clickNextButton();
}
});
});
Qualtrics.SurveyEngine.addOnReady(function()
{
});
Qualtrics.SurveyEngine.addOnUnload(function()
{
});
Thank you,
Stressed First-Timer
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
