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

change "total" text on constant sum question

  • Jul 18, 2018 5:18 PM UTC
  • 10 replies
  • 245 views

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

10 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Jul 18, 2018 6:30 PM UTC
Is Total on the right or bottom?

Forum|alt.badge.img+4
  • Author
  • Jul 18, 2018 6:38 PM UTC
> @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 ●●●●●●●●
  • Answer
  • Jul 18, 2018 6:57 PM UTC
Add this to the addOnload function: ``` jQuery("#"+this.questionId+" .c1:last").html("New Total Label"); ```

Forum|alt.badge.img+4
  • Author
  • Jul 18, 2018 7:34 PM UTC
> @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 ●●●●●●●●
  • Dec 12, 2018 6:32 PM UTC
> @_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 ●●●●●●●●
  • Dec 13, 2018 2:27 PM UTC
@_Hannah1073, Start a new thread and post _details_ on your specific constant sum question (e.g., settings, image, etc.).

  • Jan 9, 2020 1:13 AM UTC
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 ●●●●●●●●
  • Jan 9, 2020 2:10 PM UTC
> @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.