You need to sign in to do that
Don't have an account?
override inputField label
I have several inputFields where the value is set to the account ownerid. Is it possible to override the label?
<apex:page standardController="Account"> <h1>Manage Salesperson Territory Assignments</h1> <apex:form > <apex:pageBlock title="Update Specific District or Account Ownership" mode="edit"> <apex:pageBlockButtons > <apex:commandButton action="{!save}" value="Update"/> </apex:pageBlockButtons> <apex:pageBlockSection title="Used to update owner of specified account and related child accounts" columns="1"> <apex:inputField value="{!account.ownerId}"/> <apex:inputField value="{!account.ownerId}"/> <apex:inputField value="{!account.parentId}"/> </apex:pageBlockSection> </apex:pageBlock> <apex:pageBlock title="Update Account Ownership by State" mode="edit"> <apex:pageBlockButtons > <apex:commandButton action="{!save}" value="Update"/> </apex:pageBlockButtons> <apex:pageBlockSection title="Used to update owner of accounts by selected state" columns="1"> <apex:inputField value="{!account.ownerId}"/> <apex:inputField value="{!account.State__c}"/> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>
I would like to change the labels for the account owner inputFields to:
"Change Owner From:"
"Change Owner To:"
Is this possible?
Use apex:pageBlockSectionItem in section. In the sectonItem, the 1st element is handled as label, 2nd is the value.
ThomasTT