How to Set Default Merge Tag Values

Bailey Lawson Updated by Bailey Lawson

Setting a Default Merge Tag

{{ example merge tag|default:"enter text" }}

Adding |default:"enter text" to your pre-existing merge tag allows you to set a default word to populate when the recipient doesn't have the relevant information for the merge tag value

Note: If no default is set and the recipient doesn't have the value, nothing will populate on the template.

Setting the default value for the first name merge tag to "there" will populate the word "there" within a template if the user has no first name data.

For Example: {{ user.first_name|default:"there" }} Hi, ā†’ Hi there,

How did we do?

How to Use Both AND and OR Conditions When Targeting Users

Why Emails Show Different in Some Clients

Contact