Hi there :-)
I want to set a variable depending on another question and the respondent should not see it. So i did it like that and it works:
Qualtrics.SurveyEngine.addOnload(function()
{
if("${q://QID114/SelectedChoicesRecode}" == "1") this.setChoiceValue(1,true);
if("${q://QID114/SelectedChoicesRecode}" == "2") this.setChoiceValue(2,true);
if("${q://QID114/SelectedChoicesRecode}" == "3") this.setChoiceValue(2,true);
});
Qualtrics.SurveyEngine.addOnReady(function() {
jQuery('#NextButton').click();*/
});
The problem is even I skip the question by automatically clicking the next button the respondents sometimes see the question for a millisecond so I would like do hide the question completely (seperate block in surveyflow) and put the javascript in the Unload function of QID114.
but therefore I need to change the
this.setChoiceValue to something similar like QID115.setChoiceValue(1,true) but this does not work (I tried many different ways of writing).
is there a possibility to replace the "this" with a question ID?
Thank you so much!!!!
Cheers
Page 1 / 1
No, there isn't.
You can add CSS ( a style tag) to QID115 to hide it.
Too bad . But Thank you. At least a work around :-)
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.