I have a task list with a calculated column that includes some code to change the background color of the list items based on their priority value, see below
Is there a way to hide the calculated column from the view but still have it run its code, if I remove the column from the view then obviously it won't run the code to color the list
Any help would be appreciated, thanks
=[Priority]
&"<img src=""/_layouts/images/blank.gif"" onload=""{"
&"var row=this;while(row.tagName!='TR'){row=row.parentNode}"
&"row.style.backgroundColor='#"
&CHOOSE( RIGHT( LEFT( [Priority] , 2) , 1) , "F78181" , "BCF5A9" , "F3F781" , "81B1F8")
&"'}"">"