Play Games

Search This Blog

Monday, October 24, 2016

How to access Custom Label in Visualforce Page

Solution : using $Label.labelName We can access custom label.
where $Label is the global variable and labelName is the api name of custom label created
Example :
Created the custom label as shown in the image below

Visualforce Page :
<apex:page>
    <b>Custom Label</b> :{!$Label.Custom_Error_Message}  
</apex:page>
Output :

No comments:

Post a Comment