I have a list in a dashboard where the source for the template includes code such as the following:
<span style="color:#38a800;font-size:12px;"><span style="font-family:Calibri,sans-serif;"><strong> </strong></span><strong>{field/item} </strong>
When field/item resolves to the string "GREEN", for example, I need to ensure the text color is green and not a fixed hex value as it is presently. The list contains many such items and I need each to be colored accordingly. The set of colors is a fixed set which should simplify the issue.
How can I do this within the list template or with Advanced Formatting?