I'm working on a global implementation project, and in building custom Visualforce pages I'd like to use the standard Salesforce labels for actions such as Save and Cancel. Does anyone know how I can reference the labels dynamically so that I can display the action labels in the user's language?

So far I've found the ability to reference custom labels and also object or field labels. But I haven't found a way to get the labels used by Salesforce for the standard buttons.

1 Answer 1


You can either use $Label.Site to reference standard site labels. Here's a list of the standard site variables: http://www.salesforce.com/us/developer/docs/pages/Content/pages_variables_global_labelsite.htm

Or you can use the Action's label:

<apex:outputLabel value="{!$Action.Account.New.Label}" /> //shows the label for Account's "New record" action.  

Here's a list of valid actions. http://www.salesforce.com/us/developer/docs/pages/Content/pages_variables_global_action_valid_values.htm

  • Thank you for the suggestion, James. Unfortunately the idea is great but doesn't seem to be working for me. When I use that formula in my page, all I get is the text portion of the property name. For example, {!$Action.Account.New.Label} displays "$Action.Account.New" instead of the expected "New Account".
    – Marty C.
    Commented May 8, 2014 at 21:17
  • Here's my code and a screenshot.
    – Marty C.
    Commented May 8, 2014 at 21:18
  • I'm getting the same thing as @MartyC. Did you ever figure this out? Commented May 19, 2014 at 21:09
  • Hey, @DanielHoechst, I just logged Case 10570601 with Salesforce Support to see whether I can get an explanation for the unexpected behavior.
    – Marty C.
    Commented May 20, 2014 at 1:17
  • 1
    Hey, everyone, a known issue has been logged for this problem. At this point you cannot dynamically get the label of a standard action for use with Visualforce.
    – Marty C.
    Commented Jun 13, 2014 at 18:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .