Skip to content

Variable Settings

The Variable section at the top of the Properties panel is where you configure a bound element’s variable. The fields vary slightly by element type.

Select a variable-bound text element. The Variable section shows the Name and Required settings; Label, Description, Allowed values and the API Preview are in its collapsed Advanced sub-section.

Variable section for a text element. Shows the Variable switch on, the Name input (filled with "discount_code", a "Valid name" check), the Required switch on, and the expanded Advanced sub-section with Label ("Discount Code"), an empty Description, Allowed values, and the API Preview code block.

FieldDescription
NameThe variable identifier — shown on the element’s {{...}} badge and used as the field name in CSV columns and the API (e.g. discount_code). Must be unique within the template. Validated in real time.
DefaultThere’s no separate field: the element’s Text Content (in the Text section) is the default. It’s shown on the canvas and used when the variable is not provided at render time.
RequiredSwitch on or off (on by default). Required variables must be provided in every render request; optional variables fall back to the default.
LabelA human-readable display name shown in the Generate dialog and API docs (e.g. “Discount Code”).
DescriptionOptional help text for API consumers or teammates.
Allowed valuesOptional list of accepted values. Leave it empty to accept any text; when set, a batch row whose value isn’t on the list is rejected before rendering.
API PreviewA read-only snippet showing how to send this variable in a request’s variables object.
FieldDescription
NameVariable identifier (e.g. employee_photo)
Default URLFallback image when no value is provided. Leave it empty to use the image placed on the canvas (shown under the field as Using the canvas image, with a copy button for its reference).
API PreviewSnippet showing how to send this variable

There’s no Required switch for an image variable: it’s required only when neither a Default URL nor a canvas image is set (“No default: callers must provide this image.”).

How the supplied image fills its box (Cover, Contain, Fill) is set in the image’s Appearance section, like any other image. See Images.

FieldDescription
NameVariable identifier (e.g. redemption_url)
DefaultDefault QR data/URL used in previews and when no value is provided
LabelHuman-readable label (e.g. “Redemption URL”)
API PreviewSnippet showing how to send this variable
FieldDescription
NameVariable identifier (e.g. product_sku)
DefaultDefault barcode data, used when no value is provided
LabelHuman-readable label (e.g. “Product SKU”)
API PreviewSnippet showing how to send this variable
  • Start with a lowercase letter; use lowercase letters, numbers, and underscores only; at most 50 characters.
  • Must be unique within a template.
  • Examples: first_name, qr_code_data, promo_image.
  • Avoid spaces or special characters.

All variables in a template are listed in the Variables panel (left sidebar rail, variable icon). Each entry shows the variable name, type icon, and Required/Optional badge. Click a row to select that element on the canvas. An API Request Preview at the bottom shows the variables object for the whole template.