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

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%"}
});

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%");
});


Thank you, this worked perfectly!


Leave a Reply