In the below matrix table, what should be the JS code if I want to keep the last measurement scale (Not Applicable) visible for some statements and hide for other statements?
For e.g., in the below screenshot, I want to hide the last column for 'Age' and 'Ethnicity/Culture' but keep the last column for Disability/Exceptionality'. Is there a code to do that as well?
Page 1 / 1
You can use this JavaScript code to hide certain scale points in a matrix table:
Qualtrics.SurveyEngine.addOnload(function()
{
var that = this.questionId;
var row = 2;
var column = 9;
jQuery("#"+that+" .ChoiceRow:eq("+(row-1)+") .c"+(column+3)+"").css({"pointer-events":"none","visibility":"collapse"});
});
Just change the row and column to the scale point you'd like to hide.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.