Customizing Likert Scale To Hide Scale Point From Top 3 Statements | XM Community
Skip to main content

Hi, Community! Is it possible to hide the last scale point (titled “unable to rate”) in a matrix table likert scale for the first 3 statements, but display it as an option for the bottom 2 statements using custom code?

 

I’ve attached a photo of what I would like to achieve, if that helps - thank you!

 

@MarielaPagan Hi,
Add this code to the JavaScript section of your question, it will hide last scale point for the first 3 statement.

Qualtrics.SurveyEngine.addOnload(function() {
var Q = this.getQuestionContainer();

jQuery(Q).find('tr:nth-child(1) td:last-child inputttype="radio"]').hide();
jQuery(Q).find('tr:nth-child(1) td:last-child label').hide();

jQuery(Q).find('tr:nth-child(2) td:last-child inputttype="radio"]').hide();
jQuery(Q).find('tr:nth-child(2) td:last-child label').hide();

jQuery(Q).find('tr:nth-child(3) td:last-child inputttype="radio"]').hide();
jQuery(Q).find('tr:nth-child(3) td:last-child label').hide();
});

Hope it helps


@MarielaPagan Hi,
Add this code to the JavaScript section of your question, it will hide last scale point for the first 3 statement.

Qualtrics.SurveyEngine.addOnload(function() {
var Q = this.getQuestionContainer();

jQuery(Q).find('tr:nth-child(1) td:last-child inputttype="radio"]').hide();
jQuery(Q).find('tr:nth-child(1) td:last-child label').hide();

jQuery(Q).find('tr:nth-child(2) td:last-child inputttype="radio"]').hide();
jQuery(Q).find('tr:nth-child(2) td:last-child label').hide();

jQuery(Q).find('tr:nth-child(3) td:last-child inputttype="radio"]').hide();
jQuery(Q).find('tr:nth-child(3) td:last-child label').hide();
});

Hope it helps

It worked perfectly! thank you so much!


Leave a Reply