Constant Sum, Total Box Not Lining Up | XM Community
Skip to main content

Constant Sum, Total Box Not Lining Up

  • January 6, 2023
  • 2 replies
  • 27 views

Forum|alt.badge.img+2

Hi Everyone,
I found the code below to shrink the constant sum question for a better appearance. It worked great except the total box is far off to the right, so, apparently the 60% width didn't apply to that row of the table.
Any suggestions for correcting this?
Thanks in advance!
Jeanne

Qualtrics.SurveyEngine.addOnload(function()
{let labels =document.getElementsByClassName("LabelWrapper")
for(let i=0;ilabels[i].parentElement.style.width = "60%"}
});

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • January 7, 2023

This would be the equivalent that would include the total row and not impact other questions on the same page:
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" li").css("width","60%");
});


Forum|alt.badge.img+2
  • Author
  • January 9, 2023

Thank you, this worked perfectly!