You need to sign in to do that
Don't have an account?

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
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
Use outputText . Here is the code ..