function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
aaryan sriaaryan sri 

How to Change output background color based on value

Hi All,
Some body can help need to show column
1.out put text value red color if text value is closed 
2. out put text value green color if text value is open 
3. out put text value  grey color if text value is Existing

Below is the vf code
<apex:column >
<apex:facet name="header">PANEL STATUS</apex:facet>                                                
<p>  <span class="label label-default">{!objRecord.panel_status}</span></p>

Rupal KumarRupal Kumar

Try this code-
<apex:outputText value="{!o.Textfield}" style="color:{!Case(o.Textfield, 'closed', 'red', 'open ', 'green ','Existing','grey','None')};"/>
Rupal Kumar