You need to sign in to do that
Don't have an account?
MVJ
It outputs the field label for the specific object. When it outputs the Account Owner it displays the Label as "Name" when I want the label to read "Account Owner". I have tried to use the Title option and can noit get that to work. I also tried to use the outPutLabel and that does not seem to work either.
Change the output label
I have the following visual force page:
Code:
<apex:pageBlock title="Account"> <apex:pageBlockSection title="Account Detail" columns="2" collapsible="true"> <apex:outputField value="{!Account.Name}" id="AccountName"></apex:OutputField><apex:outputField value="{!Account.Owner.name}"></apex:OutputField> <apex:outputField value="{!Account.Site}"></apex:OutputField><apex:outputText></apex:outputText> <apex:outputField value="{!Account.BillingStreet}"></apex:OutputField><apex:outputText></apex:outputText> <apex:outputField value="{!Account.BillingCity}"></apex:OutputField><apex:outputText></apex:outputText> <apex:outputField value="{!Account.BillingState}"></apex:OutputField><apex:outputText></apex:outputText> <apex:outputField value="{!Account.BillingPostalCode}"></apex:OutputField><apex:outputText></apex:outputText> </apex:pageBlockSection> </apex:pageBlock>
It outputs the field label for the specific object. When it outputs the Account Owner it displays the Label as "Name" when I want the label to read "Account Owner". I have tried to use the Title option and can noit get that to work. I also tried to use the outPutLabel and that does not seem to work either.
So how do I change the default label on this page.
Thanks
Thanks Sam That worked like a charm.
Here is the updated Code:
All Answers
Use outputLabel instead of outputField and combine it with another outputLabel to show your text "Account Owner"
Thanks Sam That worked like a charm.
Here is the updated Code:
Yes I know that I can define the columns as 1. They are place holders. I will be adding other data elements there as I continue to build this out further. Just want to make sure that adress lines all stayed in the left column for now.
Thanks