Skip to content

How to work with template variables

Feature Channel

Go to Youtube to see all feature videos

Template Variables

When referring to variables we can mean Template variables or JavaScript variables. In the context of this page, we are talking about Template variables, unless stated differently.

Be sure to also check the concept page

Insert template variable in a text frame

Choose "Insert" from the variable "..." menu to insert it into a text frame

Insert the content of a text variable into a text frame.

screenshot-full

Insert the content of list variable into a text frame.

screenshot-full

In edit mode, the template variable name is shown in a gray box in the text.

screenshot-full

screenshot-full

If the frame is not wide enough to show the full name, the name will be truncated to avoid overflow.

screenshot-full

Find and locate placed variables using the highlight tool

When working with complex templates, it can be difficult to see where a specific variable is used in the layout.
The highlight tool allows you to instantly visualize every placement of a selected template variable on the canvas.

How to highlight a variable

  1. Open the Variables panel.
  2. Locate the variable you want to inspect.
  3. Click the Highlight icon next to the variable name.

Highlight icon

All placements of that variable are temporarily highlighted directly on the document canvas.

Variable highlight example

What gets highlighted

The tool highlights every place where the variable is applied, including:

  • Text frames containing the variable
  • Image fields bound to the variable

This works even if elements are grouped or positioned in different areas of the layout.

When to use highlighting

Use variable highlighting when you:

  • Want to safely rename a variable
  • Need to validate all placements before editing logic
  • Suspect a variable is placed multiple times
  • Want to confirm whether a variable is actually used

If no elements are highlighted, the variable may not be placed on the canvas.

Canvas showing no highlighted placements for the selected variable

Tip

Use the search field in the Variables panel to quickly filter variables before highlighting one.