Field

Merges a field's value, falling back to text you supply when the field is empty. It is the simplest way to make sure a greeting never opens with a blank.

Syntax

{{field data default}}

Parameters

Name Type Required Description
Data Text Required The field to merge.
Default Text Optional What to merge when the field is empty. Nothing merges when you leave it out.
Note: This default is used only while the message is being built. It is not the same as the default value configured on an audience data field, and it does not change what is stored on the contact.
Tip: Use this rather than If blank when all you want is a stand-in word. Reach for If blank when the two cases need different sentences.

Examples

The examples below are based on the following sample content:

Dear {{field Contact.firstName "customer"}},

A. The contact's firstName field has no value

Dear customer,

B. The contact's firstName field has the value Jason

Dear Jason,

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us