Skip to main content
Modifiers change how a variable value appears when your content is sent. Add one with a pipe (|) after the field.

How modifiers work

A modifier goes after the field, separated by a pipe:
Add more pipes to apply modifiers in order, from left to right:
Some modifiers take extra values after a colon, separated by commas:
Arguments can be:
  • Text — wrap it in quotes: "EUR", "there"
  • Numbers — write them plainly: 20, 2
  • Another field — reference it by key: highlight: candidate.first_name
Many modifiers have shorter aliases. For example, upper works the same as uppercase, and gt the same as greater_than. Aliases are shown in brackets in the tables below.

How the popover shows modifiers

In the editor a variable with modifiers keeps its display name and adds a wand icon. Hover the badge and the popover walks through the pipeline: the input value, one card per modifier in plain language, and the output. lowercase reads Lowercase, truncate_chars reads Limit characters, and arguments appear under the modifier’s name. The Description box of a form question with four badges, and a popover open above it headed Name with cards reading Input NPS required question, Lowercase, Capitalise words, Use a fallback Your form, and Output Nps Required Question
Some modifiers cannot be previewed. Their card stays in the pipeline with a note, and the output is left out. The modifier still runs when the content is sent.
The popover is read-only. To change the expression, see Editing a badge.

Fallback

In the popover the fallback appears as its own step, Use a fallback, with the fallback text under it. When the field is empty, the input reads No value provided and the output shows the fallback.

Literals

A quoted text, a number, or true or false can stand in place of a field. It becomes a badge like any variable, and modifiers apply to it in the same way:
The badge is tinted to set it apart from a field, and carries the icon of the literal’s type. A tinted badge reading text with a text-type icon and a wand icon, and its popover with Input text, Uppercase, and Output TEXT

Text

Contact and locale

Numbers

Dates and times

Date formats use standard date tokens such as d (day), m (month), Y (year), H (hour), and i (minute). The units for start_of and end_of are year, quarter, month, week, day, hour, minute, and second.

Lists and structured data

These work on fields that contain a list of values.

Conditions and logic

Conditions return true or false. Pair them with boolean_label to show a friendly label, or combine them with and, or, and not. A condition combined with a label is a common pattern: