Skip to main content

How to: Personalize your emails and forms with merge fields

Merge fields dynamically pull in information from a contact record and place it in your emails or forms. Adding merge fields is a great way to personalize email content to donors and other supporters. Studies have shown that by personalizing your subject line and salutation, you can significantly increase conversion rates.
​
​
​
Merge fields are available from many sections of your contact records and they are easy to use. For example, you can automatically include the correct first name for your supporter when you insert a merge field for First Name. When you add the field you can also select alternative text to use if the field is empty on the contact record. In the case of the first name, you could also select the word "Friend" as an alternate if the first name of your contact is not available for some reason.
​
​

Inserting a Merge Field

Step 1: Click on Merge Field in the text editor
​

If you are using the Classic Editor in Targeted Email or Online Actions, you will see a Merge Fields dropdown menu above your text editing area.
​
​


​
If you are using the Drag & Drop Editor in Targeted Email, you can open Merge Fields from the More dropdown in your Text block.
​
​


​
You will then see several merge fields listed, organized into categories.
​
​

Step 2: Find and select your merge field

You can use the search bar to find a field quickly, or browse by scrolling and expanding categories.
​
​


​
​
​

Step 3: Enter a default value and click Add


Once you select a merge field, you will be prompted to enter a default value. This is used in cases where the field is not populated on a contact record.
​


​

For example, if you're sending your email to people for which you don't have a first name - perhaps only an email address - you'll need something to appear in this greeting.
​
If you don't have a first name for someone, they'll see Dear Friend. If you didn't enter a default value, they'd see Dear ,
​
Once you've clicked Add, your merge field will appear in the email content.
​
​


​
​

Step 4: Send a sample email to yourself


It's a good idea to send yourself a sample email and view it as one of your contact records to confirm the merge field is populating as you expect.
​
Use Contact Name to select a contact record, then enter your email address. You'll receive the email that that person would see.


​
​
​
With the sample email, you can confirm that the greeting is correct. In this case, you can test it first with a complete contact record that contains a first and last name.
​


​
Then you can do another test of the email using a record that does not have the name field to confirm that your alternate greeting works. Use the supporter record's VAN ID to search for and select it.

Merge fields in Online Actions versus Targeted Email


Keep in mind that there are different merge fields available for Targeted Emails than for Online Actions.
​
Additionally, the merge fields available for a subject line of an email are different than those available for your HTML and plain text messages.
​
And the merge fields available for Confirmation Emails are different from those available on the form.
​
Because of these differences, it's a good idea to use the Merge Fields dropdown in each place, instead of copying and pasting from elsewhere.
​
However, the HTML Message and Plain Text Message text areas support the same fields, so you should feel free to click Generate Plain Text Message to copy the the HTML content.

Merge Field Syntax


Take note of the syntax of the merge field and the default content. The default content should be enclosed in apostrophes if it isn't a number. Both the merge field and the default content should be enclosed in 2 curly braces.
​

String Example

Did you know that there are hundreds of people in {{City or 'your area'}} that also want to help save the penguins?

Number Example

Won't you please consider making a donation of {{format_currency(MostRecentContributionAmount or 10)}}?

Apostrophes

If you want to include apostrophes within your default content, you'll need to escape them with a backslash to convey that it's not the end of the default content.
​

We sent your message to {{AdvocacyTargetFullName or 'our staff, but we couldn\'t find a representative for your area.'}}.


Finally, make sure that you use straight apostrophes (') instead of smart apostrophes (').

Merge fields available in Targeted Email

Advocacy Targets

Group

Merge Field

Advocacy Targets

State Governor

Advocacy Targets

State Representatives

Advocacy Targets

State Senators

Advocacy Targets

US Representative

Advocacy Targets

US Senators

Contact Address Information

Group

Merge Field

Contact Address Information

Mailing Address

Contact Address Information

Primary Apartment Number

Contact Address Information

Primary Apartment Type

Contact Address Information

Primary City

Contact Address Information

Primary Country

Contact Address Information

Primary State

Contact Address Information

Primary State Or Province

Contact Address Information

Primary Street Address

Contact Address Information

Primary Street Name

Contact Address Information

Primary Street Number

Contact Address Information

Primary Street Number (Half)

Contact Address Information

Primary Street Prefix

Contact Address Information

Primary Street Suffix

Contact Address Information

Primary Street Type

Contact Address Information

Primary Zip Code

Contact Address Information

Primary Zip Or Postal

Contact Address Information

Primary Zip4

Contact Address Information

Primary Zip5

Contact Address Information

Work Address

Contact Address Information

Work City

Contact Address Information

Work Postal Code

Contact Address Information

Work State

Contact Details

Group

Merge Field

Contact Details

Assigned Staff

Contact Details

Cell Phone

Contact Details

Contact ID

Contact Details

Date of Birth

Contact Details

Employer Name

Contact Details

Envelope Name

Contact Details

First Name

Contact Details

Full Name

Contact Details

Home Phone

Contact Details

Last Name

Contact Details

Middle Name

Contact Details

Occupation

Contact Details

Other Email

Contact Details

Personal Email

Contact Details

Phone

Contact Details

Prefix

Contact Details

Salutation

Contact Details

Sex

Contact Details

Subscriber Email

Contact Details

Suffix

Contact Details

Work Email

Contact Details

Work Phone

Contribution Information

Group

Merge Field

Contribution Information

Highest Previous Contribution Amount

Contribution Information

Last 4 Digits of FastAction Credit Card

Contribution Information

Most Recent Contribution Amount

Contribution Information

Most Recent Contribution Date

Contribution Information

Most Recent Recurring Commitment Amount

Contribution Information

Most Recent Recurring Commitment Date

Contribution Information

HighestPreviousContributionAmount

Contribution Information

HighestPreviousContributionAmount12

Contribution Information

HighestPreviousContributionAmount24

Contribution Information

HighestPreviousContributionAmount36

Contribution Information

HighestPreviousContributionDateHighestPreviousContributionDate12

Contribution Information

HighestPreviousContributionDate24

Contribution Information

HighestPreviousContributionDate36

Contribution Information

MostRecentContributionAmount

Contribution Information

MostRecentContributionAmount12

Contribution Information

MostRecentContributionAmount24

Contribution Information

MostRecentContributionAmount36

Contribution Information

MostRecentContributionDate

Contribution Information

MostRecentContributionDate12

Contribution Information

MostRecentContributionDate24

Contribution Information

MostRecentContributionDate36

Contribution Information

AverageContributionAmount

Contribution Information

First Contribution Amount

Contribution Information

First Contribution Date

Contribution Information

Number of Attributed Contributions

Contribution Information

Total Amount of Attributed Contributions

Contribution Information

Number of Contributions

Contribution Information

Total Of Contributions

Contribution Information

Number of Contributions Last 365 Days

Contribution Information

Total Amount of Contributions Last 365 Days

Contribution Information

Number of Contributions Last Year

Contribution Information

Total Amount of Contributions Last Year

Contribution Information

Number of Contributions Two Years Ago

Contribution Information

Total Amount of Contributions Two Years Ago

Contribution Information

Number of Contributions YTD

Contribution Information

Total Contribution Amount YTD

Custom Fields

Group

Merge Field

Custom Fields

(all custom fields that you have configured)

Districts

Group

Merge Field

Districts

Congressional District

Districts

County

Districts

State House

Districts

State Senate

Financial Household Details

Group

Merge Field

Financial Household Details

Financial Household Salutation

Financial Household Details

Financial Household Formal Salutation

Financial Household Details

Financial Household Additional Salutation

Financial Household Contribution Information

Group

Merge Field

Financial Household Contribution Information

Financial Household HighestPreviousContributionAmount

Financial Household Contribution Information

Financial Household HighestPreviousContributionAmount12

Financial Household Contribution Information

Financial Household HighestPreviousContributionAmount24

Financial Household Contribution Information

Financial Household HighestPreviousContributionAmount36

Financial Household Contribution Information

Financial Household HighestPreviousContributionDateHighestPreviousContributionDate12

Financial Household Contribution Information

Financial Household HighestPreviousContributionDate24

Financial Household Contribution Information

Financial Household HighestPreviousContributionDate36

Financial Household Contribution Information

Financial Household MostRecentContributionAmount

Financial Household Contribution Information

Financial Household MostRecentContributionAmount12

Financial Household Contribution Information

Financial Household MostRecentContributionAmount24

Financial Household Contribution Information

Financial Household MostRecentContributionAmount36

Financial Household Contribution Information

Financial Household MostRecentContributionDate

Financial Household Contribution Information

Financial Household MostRecentContributionDate12

Financial Household Contribution Information

Financial Household MostRecentContributionDate24

Financial Household Contribution Information

Financial Household MostRecentContributionDate36

Financial Household Contribution Information

Financial Household AverageContributionAmount

Financial Household Contribution Information

Financial Household First Contribution Amount

Financial Household Contribution Information

Financial Household First Contribution Date

Financial Household Contribution Information

Financial Household Number of Attributed Contributions

Financial Household Contribution Information

Financial Household Total Amount of Attributed Contributions

Financial Household Contribution Information

Financial Household Number of Contributions

Financial Household Contribution Information

Financial Household Total Of Contributions

Financial Household Contribution Information

Financial Household Number of Contributions Last 365 Days

Financial Household Contribution Information

Financial Household Total Amount of Contributions Last 365 Days

Financial Household Contribution Information

Financial Household Number of Contributions Last Year

Financial Household Contribution Information

Financial Household Total Amount of Contributions Last Year

Financial Household Contribution Information

Financial Household Number of Contributions Two Years Ago

Financial Household Contribution Information

Financial Household Total Amount of Contributions Two Years Ago

Financial Household Contribution Information

Financial Household Number of Contributions YTD

Financial Household Contribution Information

Financial Household Total Contribution Amount YTD

Moves Management Action Plans

Group

Merge Field

Moves Management Action Plans

Primary Solicitor

Moves Management Action Plans

Secondary Solicitors (comma separated if multiple present)

Moves Management Action Plans

Start Date

Moves Management Action Plans

Status Date

Moves Management Action Plans

Status

Moves Management Action Plans

Ask Amount

Moves Management Action Plans

Result Date

Moves Management Action Plans

Committed Amount

Pledge Details

Group

Merge Field

Pledge Details

Most Recent Pledge Amount

Pledge Details

Most Recent Pledge Amount Contributed

Pledge Details

Most Recent Pledge Amount Remaining

Pledge Details

Most Recent Pledge Date

Pledge Details

Most Recent Pledge Fulfillment Date

Pledge Details

Next Installment Amount

Pledge Details

Next Installment Scheduled Date

Pledge Details

Final Scheduled Payment Date

Pledge Details

Final Scheduled Payment Amount

Voter Information

Group

Merge Field

Voter Information

Early Voting City

Voter Information

Early Voting Location Name

Voter Information

Early Voting State

Voter Information

Early Voting Street Address

Voter Information

Early Voting Zip

Voter Information

Party

Voter Information

Polling City

Voter Information

Polling Location

Voter Information

Polling Street Address

Voter Information

Polling Zip

Did this answer your question?