---
schema_version: "1"
id: b422d4334f5074d8dc649ef411866f994f9c8316fd03eb1e5a30b73a96eb5070
title: Merge Fields for Visualforce Pages
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/pages_merge_fields.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.pages_merge_fields.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f16d4ce239505da53f0ce070f8794d56896b31e8fae4c457a60a93b2a69eaf02
description: A merge field is a field you can put in an email template, mail merge template, custom link, or formula to incorporate values from a record.
products:
  - Salesforce Platform
release: "264"
---
# Merge Fields for Visualforce Pages

A merge field is a field you can put in an email template, mail merge template, custom link, or formula to incorporate values from a record.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Contact Manager</strong>, <strong>Group</strong>, <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

Visualforce pages use the same expression language as formulas—that is, anything inside `{! }` is evaluated as an expression that can access values from records that are currently in context. For example, you can display the current user's first name by adding the `{!$User.FirstName}` merge field to a page.

```markup
<apex:page>
    Hello {!$User.FirstName}!
s</apex:page>
```

If your user’s name is John, the page will display Hello John!

You also can use merge fields or other functions to personalize your object-level help content.

#### See Also

- [Create Visualforce Pages](https://help.salesforce.com/s/articleView?id=platform.pages_creating.htm&release=264.0.0&type=5 "You can create Visualforce pages either by using Visualforce development mode, or by creating pages in Setup.")
- [Global Variables](https://help.salesforce.com/s/articleView?id=platform.dev_understanding_global_variables.htm&release=264.0.0&type=5 "When you work with components such as custom buttons and links, formulas in custom fields, validation rules, flows, processes, and Visualforce pages, you can use special merge fields to reference data in Salesforce.")
- [Displaying Field Values with Visualforce](https://developer.salesforce.com/docs/atlas.en-us.pages.me../../pages/pages_quick_start_display_field_values.htm)