You are here:
Add a Fallback Value for Dynamic Content
If dynamic content doesn’t appear because there’s no correlating value, you can add a fallback value that shows instead.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
If dynamic content doesn’t appear because there’s no correlating value, you can add a fallback value that shows instead.
| Available in: Premium Edition |
| Permissions Needed | |
|---|---|
| To create or edit mobile campaigns: | A role with Campaign Create/Edit permissions |
#field(${user.userName},
"DEFAULT_TEXT")
${user.attributes.MY_CUSTOM_FIELD}
It’s important to add "attributes" between "user" and your custom field name for the message to display properly.
Also, this alternate syntax must be used if MY_CUSTOM_FIELD contains a space:
${user.attributes.get('MY_CUSTOM_FIELD')}
The following example uses the word "Visitor" as the second parameter. This dynamic content is part of a campaign message with the qualified visitor's userName. If there’s no value for the userName attribute, the message shows "Visitor" instead.
#field(${user.userName}, "Visitor")

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.