+ 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}"  />

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

any assistance would be apprecatied


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}"  />