change "total" text on constant sum question | XM Community
Skip to main content
Solved

change "total" text on constant sum question


Forum|alt.badge.img+4
Hi, I'd like to change the text at the bottom of a matrix constant sum question from "Total" to something else. Javscript isn't my forte--how could I do this? Thanks!

Best answer by TomG

Add this to the addOnload function: ``` jQuery("#"+this.questionId+" .c1:last").html("New Total Label"); ```
View original

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • July 18, 2018
Is Total on the right or bottom?

Forum|alt.badge.img+4
  • July 18, 2018
> @TomG said: > Is Total on the right or bottom? It's on the bottom, by scale point. Thanks.

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • July 18, 2018
Add this to the addOnload function: ``` jQuery("#"+this.questionId+" .c1:last").html("New Total Label"); ```

Forum|alt.badge.img+4
  • July 18, 2018
> @TomG said: > Add this to the addOnload function: > ``` Perfect, thanks very much!

Hi, i have the same problem but the code does not work in my case. I did it in the following way: ! did i make a mistake?

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • December 12, 2018
> @_Hannah1073 said: > Hi, i have the same problem but the code does not work in my case. I did it in the following way: ! > > did i make a mistake? > It appears Qualtrics has made a change to the html structure since this question and answer were originally posted. Try this instead: ``` jQuery("label[for="+this.questionId+"_Total]").html("New Total Label"); ```

Dear Tom, thanks for your help. Unfortunately this one does not work in my case either to override the standard label. I used: Qualtrics.SurveyEngine.addOnload(function() { jQuery("label[for="+this.questionId+"_Total]").html("New Total Label"); }); Any clues?

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • December 13, 2018
@_Hannah1073, Start a new thread and post _details_ on your specific constant sum question (e.g., settings, image, etc.).

  • January 9, 2020
Is there a code to change the total label in a constant sum matrix table with the Total column on the right?

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • January 9, 2020
> @YaelC said: > Is there a code to change the total label in a constant sum matrix table with the Total column on the right? Start a new thread.

Leave a Reply