I have a questionaire, where respondents can choose to either fill a matrix or check a checkbox, like on the picture below:
!
Now, I want to enable, that when someone checks the "I do not want feedback" box, any potential selcetion in the matrix above gets removed. I have the following code so far:
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
var qid = this.questionId;
jQuery("input[name='QR~QID57~1']").change(() => {
for (var i = 1; i <= 3; i++) {
for (var j = 1; j <= 6; j++) {
Qualtrics.SurveyEngine.registry[qid].setChoiceValue(i, j, false);
}
}
});
});
However, this doesn't work, every time I check the checkbox now, I get the following error:
!
Thank you!
Best answer by TomG
View original