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
Sean NolansSean Nolans 

text colour display not rendering as expected ?

I am attempting to render text colo based on critieria 

the output text works but the colour fails to render as expected 

<apex:page standardController="order__c" >
  
  <apex:outputField style="color: {!IF(order__c.order_status__c ="Confirmed",'red','green')}" value="{!order__c.order_status__c}"  />
    </apex:page>

Do I need a custom controller 
or should this work with a standard controller ?

any assistance would be apprecatied

thanks

 
Raj VakatiRaj Vakati
Use outputText  . Here is the code .. 
 
<apex:page StandardController="Account" >
      <apex:outputText style="color: {!IF(account.Active__c ='Yes','red','green')}" value="{!account.Active__c}"  />
</apex:page>