I have a SharePoint list which I need to colour code based on the data context. The list comprises of three columns:
- Title
- Status (choice)
- 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.