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
kk1985kk1985 

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>
NagendraNagendra (Salesforce Developers) 
Hi KK1985,

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. Please let us know if you need anything else.

Best Regards,
Nagendra.P