I am working on SharePoint list using Totals feature under list view setteing which includes count, sum, average etc. Is it possible to change the sum text to Total.

enter image description here

enter image description here

How can I replace it with Total. I did try few codes but it didn't work out for me. Thanks.

  • Its HTML is created server side and has no DOM id or class to target it with CSS. So the only options is overwriting it with JavaScript Feb 16, 2017 at 21:23
  • Hi Danny, I tried using jQuery <script src="ajax.googleapis.com/ajax/libs/jquery/3.1.1/…> <script> $(document).ready(function(){ $('.ms-vb2 > nobr').each(function(){ console.log(this); var one = this; this.outerText = this.outerText.replace('Sum','Total '); }); }); }); </script> This code didn't work, but when I tried in browser console, it did work. Feb 17, 2017 at 16:24
  • So the DOM isn't ready yet with SharePoint content when jQuery says the page is ready.. Feb 17, 2017 at 16:36
  • What should I do, any suggestions? Feb 17, 2017 at 19:32
  • Use more advanced JS to only execute when the DOM is really ready Feb 17, 2017 at 19:48


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.