Loading...

RE: Applying Color Coding to a SharePoint List.

RE: Applying Color Coding to a SharePoint List.

#7422
Anonymous
Anonymous
Participant

Hi ,

n

 

n

At the first sight for the script, I noticed that some single quotes and the double quotation marks are wrong in the script, I am not sure whether it is the editor issue. I have modify it, you could take a try.

n

 

n

<script type="text/JavaScript">

n

function DisplaySeverity(severity)

n

{

n

       var imgSrc = ' ';

n

       if (severity == '(1) OVERDUE')

n

           {

n

                         imgSrc = 'teamspace.merck.com/…/Overdue.png';

n

             }

n

             else if (severity == '(2) Alert')

n

             {            

n

                       imgSrc = 'teamspace.merck.com/…/Alert.png';

n

             }

n

             else if (severity == '(3) ON TIME')

n

             {

n

                       imgSrc = 'teamspace.merck.com/…/On%20Time.png';

n

             }

n

             else if (severity == '(4) Completed On Time')

n

             {

n

         imgSrc = 'teamspace.merck.com/…/Completed%20On%20Time.png&rsquo';

n

             }

n

             return '<img alt="' + severity + '" src="' + imgSrc + '">';

n

             }

n

</script>

n

 

n