+ Start a Discussion
ALAL 

Overriding Field Label Color - Visualforce

Hello, I'm attempting to override the field color  label for certain fields on the standard contracts object. Can I can do this by inputting code within the <apex:detail attribute or should I not use the <apex:detail attribute and manually type out each field I want to include? The code I have below is what I've tried so far. Thank you for your help. 

<apex:page standardController="Contract">
    <style type="text/css">
    
    blueText{color:blue;}
    
    </style>
    
    
<apex:form >
    <apex:pageBlock>
<apex:pageBlocksection title="Contract Details Test" columns="2">   
  <apex:detail subject="{!contract.Id}" >
      <apex:outputLabel >LA</apex:outputLabel>
      <apex:outputField label="Status" value="{!contract.Status}" />
      <apex:inputField value="{!contract.Status}" label="{contract.Status} "/>
      
      
    </apex:detail> 
        </apex:pageBlocksection>
   </apex:pageBlock>
    </apex:form>    
    
</apex:page>
Best Answer chosen by AL
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi, hope it helps.

Please mark it as best answer if the information is informative.

Thanks
Rahul Kumar

All Answers

Rahul KumarRahul Kumar (Salesforce Developers) 
Hi, hope it helps.

Please mark it as best answer if the information is informative.

Thanks
Rahul Kumar
This was selected as the best answer
ALAL
Thank you Rahul