You need to sign in to do that
Don't have an account?
AL
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>
<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>
- To show the field label name in color on a Visualforce page.
- https://salesforce.stackexchange.com/questions/61419/how-to-show-the-field-label-name-in-color-in-visualforce-page
hope it helps.Please mark it as best answer if the information is informative.
Thanks
Rahul Kumar
All Answers
- To show the field label name in color on a Visualforce page.
- https://salesforce.stackexchange.com/questions/61419/how-to-show-the-field-label-name-in-color-in-visualforce-page
hope it helps.Please mark it as best answer if the information is informative.
Thanks
Rahul Kumar