Newer Version Available

This content describes an older version of this product. View Latest

$Label

A global merge field type to use when referencing a custom label in a Visualforce page.

Usage

Use this expression in a Visualforce page to access a custom label. When the application server constructs the page to be presented to the end-user’s browser, the value returned depends upon the language setting of the contextual user. The value returned is one of the following, in order of precedence:
  1. the local translation’s text
  2. the packaged translation’s text
  3. the master label’s text

Example

1<apex:page>
2   <apex:pageMessage severity="info" 
3   strength="1" 
4   summary="{!$Label.firstrun_helptext}" 
5   />
6</apex:page>