You need to sign in to do that
Don't have an account?
kk1985
I'm trying to change color of First name and Last name in a visualforce page when Departure date is past today . Can you please help me with it ?
This is the code that i currently have. It saves fine. But does not change the font color. Also i need to have the font change color to red when it does not meet the below condition.
<apex:outputText rendered="{if(departure_date__c <NOW(),'true','false')}"><font color=#0000FF">{!value.firstName}</font></apex:outputText>
<apex:outputText rendered="{if(departure_date__c <NOW(),'true','false')}"><font color=#0000FF">{!value.firstName}</font></apex:outputText>
Please check with below links from community boards which has some code samples,kindly modify the code as per your requirement which might able to help you to accelerate with above requirement.
- https://developer.salesforce.com/forums/?id=906F000000099PiIAI
- https://developer.salesforce.com/forums/?id=906F000000098Y1IAI
- https://developer.salesforce.com/forums/?id=906F000000095vVIAQ
Please let us know if you need anything else.Best Regards,
Nagendra.P