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

Customizing Likert Scale To Hide Scale Point From Top 3 Statements

  • September 25, 2024
  • 2 replies
  • 36 views

Forum|alt.badge.img+1

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!

 

Best answer by Nam Nguyen

@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 input[type="radio"]').hide();
    jQuery(Q).find('tr:nth-child(1) td:last-child label').hide();

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

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

Hope it helps

View original

2 replies

Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • QPN Level 8 ●●●●●●●●
  • 1090 replies
  • Answer
  • September 25, 2024

@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 input[type="radio"]').hide();
    jQuery(Q).find('tr:nth-child(1) td:last-child label').hide();

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

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

Hope it helps


Forum|alt.badge.img+1
Nam Nguyen wrote:

@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 input[type="radio"]').hide();
    jQuery(Q).find('tr:nth-child(1) td:last-child label').hide();

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

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

Hope it helps

It worked perfectly! thank you so much!