You need to sign in to do that
Don't have an account?
How to change field label in Visual force (Standard controller)
Hi,
I am writing a VF page using Standard Controller.
To retrieve the fields, I am using <apex:inputField> tag

It is showing same name as I have given while creating the field in object, but I want to show a different label on VF page.
I didn't find any attribute of <apex:inputField> tag which helps in changing the field label.
Is there any way to do it ?
I am writing a VF page using Standard Controller.
To retrieve the fields, I am using <apex:inputField> tag
It is showing same name as I have given while creating the field in object, but I want to show a different label on VF page.
I didn't find any attribute of <apex:inputField> tag which helps in changing the field label.
Is there any way to do it ?
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_inputField.htm
try to use label also
<apex:inputField value="{!account.name}" label ="DEMO"/>
Please let us know if this will help you
Thanks
Amit Chaudhary
All Answers
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_inputField.htm
try to use label also
<apex:inputField value="{!account.name}" label ="DEMO"/>
Please let us know if this will help you
Thanks
Amit Chaudhary
Use the below line to achieve Label change .
<apex:inputField Value="{!Object__c.field__c}" label="Label name" />
Hope this will be helpful.
Thanks,
Shiva
Yeah.. it worked.. Thank u..