---
schema_version: "1"
id: 961037db5f540f9bdc049093d3885449302dbae91a8cc6bec9d5a90fafa07f26
title: Add a Fallback Value for Dynamic Content
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_pers_mobile_campaign_dynamic_values_add_fallback_value.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_pers_mobile_campaign_dynamic_values_add_fallback_value.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f604a597754d2c054588ec5104b68688ed28adb5089df8fe4cd55749acbd5c2d
description: If dynamic content doesn’t appear because there’s no correlating value, you can add a fallback value that shows instead.
products:
  - Marketing
  - Salesforce Personalization
release: "264"
---
# 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.

### 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: Premium Edition</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d38927e54">Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d38927e54 ">To create or edit mobile campaigns:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d38927e54 ">A role with Campaign Create/Edit permissions</td>

          </tr>
        </tbody>
      </table>

1. [Add dynamic content to your mobile campaign](https://help.salesforce.com/s/articleView?id=mktg.mc_pers_mobile_campaign_dynamic_values.htm&release=264.0.0&type=5 "You can add dynamic values, such as the mobile app user’s name, location, and email, to all mobile campaign types.").
2. In the dynamic attribute for which you want to add a fallback value, add a second parameter in the following syntax, changing DEFAULT\_TEXT to the text you want to use: `#field(${user.userName}, "DEFAULT_TEXT")`
3. To create a dynamic message with a custom field, use the following syntax, replacing MY\_CUSTOM\_FIELD with your custom field name:`${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')}`

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_personalization-264-0-0-production-enus/16bf1f60-f44c-4260-a56e-f052cfe515a3/images/icon_example.png)

Example

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")
```