how to hide a scale point for some statements and keep it visible for others in a matrix table? | XM Community
Skip to main content

how to hide a scale point for some statements and keep it visible for others in a matrix table?

  • October 12, 2022
  • 2 replies
  • 196 views

Forum|alt.badge.img+5

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?

image.png

2 replies

jflowers1
Level 4 ●●●●
Forum|alt.badge.img+34
  • Level 4 ●●●●
  • 34 replies
  • October 13, 2022

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.


Forum|alt.badge.img+1
  • 1 reply
  • February 17, 2025

Hi ​@jflowers1 - would you kindly be able to advise what the code would be if you wanted to hide 2 scale points/columns in 1 row? thanks!


Leave a Reply