change "Total" text column on Constant Sum Matrix table | XM Community
Skip to main content
Solved

change "Total" text column on Constant Sum Matrix table


MikeW
Level 5 ●●●●●
Forum|alt.badge.img+14
  • Level 5 ●●●●●
  • 137 replies

Hi,
I'd like to change the text at the right hand side (column) of a matrix constant sum question from "Total" to something else.
I found the syntax in another thread that changes the bottom total (row) : jQuery("#"+this.questionId+" .c1:last").html("New Total Label");
... but I couldn't figure out how to change this syntax to change the total column i.e. Statement Total Box, rather than Scale Point Total Box.
Thanks!

Best answer by Tom_1842

Hi there, if you still need, you can change the Statement Total Box label to display other text by adding the below code to the OnReady of the question's JavaScript:
var totallabel = document.getElementById("header~total~"+this.questionId);
jQuery(totallabel).html("New Total Label");

View original

2 replies

Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • Level 8 ●●●●●●●●
  • 876 replies
  • Answer
  • October 27, 2022

Hi there, if you still need, you can change the Statement Total Box label to display other text by adding the below code to the OnReady of the question's JavaScript:
var totallabel = document.getElementById("header~total~"+this.questionId);
jQuery(totallabel).html("New Total Label");


MikeW
Level 5 ●●●●●
Forum|alt.badge.img+14
  • Author
  • Level 5 ●●●●●
  • 137 replies
  • November 4, 2022

Leave a Reply