Hiding checkboxes with no answers in them | XM Community
Skip to main content

Hello!
I am currently trying to create a question, which would have an matrix table which looks like this:
image.pngThe thing is, I want the checkboxes which do not have any answers in them to either disappear completely, or just be deactivated and not clickable.
I suppose that this should be done with javascript, but I really do not have a clue how.
I tried the answer given here:
https://community.qualtrics.com/XMcommunity/discussion/20441/hide-check-box-in-matrix-questionBut it doesn't seem to work.
Thanks for all the answers!

mpyrkowski,
Is that a Likert Matrix in Profile format?


TomG
Yes, that's in the Likert format.


https://community.qualtrics.com/XMcommunity/discussion/comment/51476#Comment_51476That didn't really answer the question, but try this:
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" .ChoiceRow th").not("[scope=row]").each(function() {
if(jQuery(this).text().trim().length == 0) jQuery(this).find("*").hide();
});
});


Leave a Reply