Custom Advocate Fields
Custom fields let you collect and display additional information about your advocates beyond the standard profile fields.
Creating a Custom Field
- Go to Settings > Custom Advocate Fields
- Click Add Custom Field
- Fill in the field details:
- Label — the name shown to admins and advocates
- Identifier — used in merge variables (auto-generated from the label if left blank)
- Response Type — Short text, Long text, Number, Single select, Multiple select, Year, or Checkbox (see Custom Fields for what each does)
- Field Placement — Account (internal) or Profile (public profile page)
- Advocate Access — Hidden, Read Only, or Editable
- Output Format — how the value is displayed (see below)
- Click Create Custom Field
Limit to Types
If your community has more than one advocate type, a field has a Limit to types option. Pick the types that should have the field, or leave it empty so every type does.
Advocates of other types don’t see the field on their account or profile, on the public profile, in the admin detail page, in message templates (the merge variable renders blank), or in the API and CSV export (the value is empty). Their existing answers are kept, and they come back if the advocate’s type changes back.
Output Format
The output format controls how a custom field value is displayed on profiles, account pages, and admin detail views. There are three options:
Raw Value
The default. Displays exactly what the advocate entered with no formatting applied.
Custom Plain Text
Wraps the advocate’s value in a plain text template. Use {{value}} as a placeholder for the advocate’s input.
Example template: Code: {{value}}
If the advocate enters ABC123, it displays as: Code: ABC123
Custom HTML
Wraps the advocate’s value in an HTML template. Use {{value}} as a placeholder. The HTML is rendered on the page, so you can create links, styled text, or other HTML elements.
Example template: <a href="https://example.com?code={{value}}">Get Discount</a>
If the advocate enters SAVE20, it renders as a clickable link pointing to https://example.com?code=SAVE20.
The advocate’s value is always HTML-escaped before being inserted into the template. This means advocates cannot inject scripts or other HTML through their input.
The template itself is rendered as-is. Make sure your template HTML is correct and does not include untrusted content.
Unique Values
Enable Require unique values on a custom field to ensure no two advocates share the same value. This is especially useful for discount codes, referral codes, or any identifier that must be distinct per advocate.
- Go to Settings > Custom Advocate Fields
- Click the field to edit
- Check Require unique values across advocates
- Click Update Custom Field
When enabled:
- Manual edits show an inline error (“is already in use by another advocate”) if you enter a duplicate value
- Automated code minting (via the Shopify Integration) retries up to 5 times with fresh random values if a collision occurs
We recommend enabling unique values on any field used for discount codes or referral codes before minting.
Merge Variables
Each custom field creates a merge variable you can use in message templates. The format is {{advocate_custom_field_<identifier>}}.
For example, a field with the identifier coupon_code creates the merge variable {{advocate_custom_field_coupon_code}}.
Merge variables always use the raw advocate value, not the formatted output. Formatting only applies to profile and account page display.
Where Custom Fields Appear
| Location | Who sees it |
|---|---|
| Admin advocate detail page | Admins always see all fields |
| Advocate account page | Advocates see fields with Read Only or Editable access |
| Advocate profile page | Public visitors see Profile-placement fields with values |
Editing and Deleting
- Go to Settings > Custom Advocate Fields
- Click on the field name to edit
- Update any settings and click Update Custom Field
- To delete, click Delete and confirm
Changing a field’s identifier will break any message templates that reference the old merge variable. Update those templates after saving.