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.

Usage

Use this expression in a Visualforce page to access a custom label. The returned value depends on the language setting of the contextual user.​ The value returned is one of these, in order of precedence:
  1. The local translation’s text
  2. The packaged translation’s text
  3. The primary label’s text

Example

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