Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Color Coded List

$
0
0

I have a SharePoint list which I need to colour code based on the data context. The list comprises of three columns:

  1. Title
  2. Status (choice)
  3. Colour Code (calculated)

The calculated column contains the following formula:

=IF(Status="Active","<DIV><IMG src='http://burganportal/orabi/SiteAssets/Green%20Circle.jpg' /></DIV>",IF(Status="Inactive","<DIV><IMG src='http://burganportal/orabi/SiteAssets/Red%20Circle.jpg' /></DIV>"))

The formula uses pictures located in the Site Assets to colour code the records. However, how do I display the pictures rather than the actual code? I have followed many tutorials involving JavaScript and CEWP but none of them apply to SP 2013, eventhough they claim it works with 2013.

Can anyone please help? I need a detailed step-by-step guide.


Viewing all articles
Browse latest Browse all 7589

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>