Make Group Titles in a Likert Matrix Table wrap | XM Community
Skip to main content
Solved

Make Group Titles in a Likert Matrix Table wrap

  • January 28, 2022
  • 2 replies
  • 186 views

MikeW
Level 5 ●●●●●
Forum|alt.badge.img+14
  • Level 5 ●●●●●

Is there a way to make Group Titles in a Likert Matrix Table wrap in the same way that the statements do?
image.png



Best answer by Rudi

Hi Mike

this code set the group header text in one column of the table. Should also set align other group headers in the matrix
Qualtrics.SurveyEngine.addOnload(function()
{
let groupheaders = document.getElementsByClassName("Group")
console.log(groupheaders)

for(let i=0;i groupheaders[i].colSpan="1"
}
});

Best regards

Rudi

2 replies

Rudi
QPN Level 3 ●●●
Forum|alt.badge.img+16
  • QPN Level 3 ●●●
  • Answer
  • February 1, 2022

Hi Mike

this code set the group header text in one column of the table. Should also set align other group headers in the matrix
Qualtrics.SurveyEngine.addOnload(function()
{
let groupheaders = document.getElementsByClassName("Group")
console.log(groupheaders)

for(let i=0;i groupheaders[i].colSpan="1"
}
});

Best regards

Rudi


MikeW
Level 5 ●●●●●
Forum|alt.badge.img+14
  • Author
  • Level 5 ●●●●●
  • February 1, 2022

Brilliant! Thanks Rudi