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
Pankaj Gupta 94Pankaj Gupta 94 

Amount Earned Font should show color as per the directives defined Amount Invested > Amount Earned Color is RED, If Amount Invested = Amount Earned color is BLUE and If Amount Invested < Amount Earned color is GREEN

Amount Earned Font should show color as per the directives defined    
Amount Invested > Amount Earned    Color is RED,
If  Amount Invested = Amount Earned color is BLUE and
If Amount Invested < Amount Earned    color is GREEN

I have defined the fields as 
<apex:inputField value="{!newContact.Amount_Invested__c}" required="true"/>
<apex:inputField value="{!newContact.Amount_Earned__c}" required="true"/>