function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anilkumar KGAnilkumar KG 

I need to rename the label in VF page

Hi all. I have a VF form and I have 6 fields in that (First Name*, Last Name*, Mobile*, Email, MM-DD-YYYY*, Slots) I want to rename the field label from MM-DD-YYYY to Date* and right now I have no name for Slots(it's a picklist field). So is there any possibility to rename the label?
PriyaPriya (Salesforce Developers) 

Hi AnilKumar,

Kindly check this, that matches your requirement :-

https://salesforce.stackexchange.com/questions/94953/change-field-labels-in-vf-page

https://salesforce.stackexchange.com/questions/135419/how-to-change-label-width-for-inputfield-in-vf-page

Regards,

Priya Ranjan

Maharajan CMaharajan C
Hi Anil,

Are you looking for chage the label for apex:outputField  or apex:inputFiel... if yes then please use the label attribute. Else please explain breifly or share the code snippet here.
 
<apex:outputField value="{!Contact.MobilePhone}" label="op Mobile #"/>
<apex:inputField value="{!Contact.MobilePhone}" label="ip Mobile #"/>

Thanks,
Maharajan.C
Anilkumar KGAnilkumar KG
User-added imageUser-added imageUser-added imageUser-added image
Anilkumar KGAnilkumar KG
User-added imageUser-added imageUser-added image
Suraj Tripathi 47Suraj Tripathi 47
Hi AnilKumar,

If you want to change button label at Object level then follow these steps:-
- Customize
- Tab Names and Labels
- Rename Tabs and Labels
- Select Object
- edit
- Change the name

You can directly change the name for custom Object.

Thank you!

Regards,

Suraj Tripathi