Reduce the width of columns in a matrix question | XM Community
Skip to main content
Question

Reduce the width of columns in a matrix question

  • October 2, 2020
  • 2 replies
  • 193 views

Forum|alt.badge.img

Hi!
I have a survey with 2 questions that the respondent needs to scroll to see the last choice (10). How can I reduce the width of the columns so respondents don't have to scroll?

Thanks!

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • October 2, 2020

You could check "Position Text Above" or use CSS or JS to reduce the padding of the column headers.


Forum|alt.badge.img
  • Author
  • October 2, 2020

HI!

Thanks for the suggestion!
I was able to add javascript to the question and it is working:

Qualtrics.SurveyEngine.addOnload(function()
{
var cl = jQuery("#"+this.questionId+" td.ColumnLabels");
cl.attr('colspan',cl.attr('colspan')-4);
});



Have a great weekend!