change colors of the dropdown list in reference selector according to enumeration values

0
i have enumeration values as active and inactive associated to the attributes in reference selector i want green color attribute name if status is active else red  color .
asked
1 answers
0

You can use the dynamic class for this, create two css classes beforehand so that you can change the colour of the text. For example: 
 

.red-text { color: red; }

.green-text { color: green; }

 

if
    $currentObject/YOUROBJECT = Enumaration.Value
then
    'green-text'
else if $currentObject/YOUROBJECT = Enumeration.Value2
then
    'red-text'
else 
    ’’

answered