Salesforce · Visualforce

Refer Object Field Label Name in Visualforce

Many case we many need to use object field label name in the Visualforce page. We can use “$ObjectType” system class.

screen-shot-2016-09-11-at-7-06-50-pm

Sample Code :

<apex:outputLabel value="{!$ObjectType.Account.fields.Name.label}" />

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s