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

Hiding checkboxes with no answers in them

  • October 28, 2022
  • 3 replies
  • 31 views

Forum|alt.badge.img+1

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!

3 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • October 28, 2022

mpyrkowski,
Is that a Likert Matrix in Profile format?


Forum|alt.badge.img+1
  • Author
  • October 28, 2022

TomG
Yes, that's in the Likert format.


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • October 28, 2022

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();
});
});