0

I am using a script editor web part (with code inserted) to color code items in rows that are grouped for a sharepoint list. I'm extremely confused as to why the the color applies only when I'm in edit mode. The code I'm using in the script editor is below..

SP.SOD.executeFunc("clienttemplates.js", "SPClientTemplates", function() { SPClientTemplates.TemplateManager.RegisterTemplateOverrides({ OnPostRender: function(ctx) { var statusColors = { 'Wacht' : '#FF0000', 'In analyse' : '#FCF600' }; var rows = ctx.ListData.Row; for (var i=0;i

Screen Shot w/ issue

teylyn
  • 34,374
  • 4
  • 53
  • 73
pache78
  • 3
  • 2
  • I also went another route to try and color code the list by using calculated fields and it worked in my test environment (English) but when I apply it to the list that uses Dutch, I get "The formula contains a syntax error or is not supported". Could this be the issue? – pache78 Dec 09 '22 at 14:41

0 Answers0