Skip to content

Sharing Logical Expressions ​

When you build complex surveys, you may find yourself using the same visibility rules or logical conditions for multiple questions or sections. Instead of rebuilding the same logic each time, you can name a logical expression to make it "shared", allowing you to easily reuse it elsewhere in your form.

Step 1: Create and Name a Logical Expression ​

First, navigate to an item that already has the logical expression you want to share.

  1. Select the item (e.g., a question) in the Compose view.
  2. Activate Visibility Mode by clicking the Visibility Mode button in the toolbar.
  3. In the logic editor, provide a Name for your expression. This action automatically makes the expression available to other items.
Setting a name for the logical expression to share it
Set a name to share your logical expression.

You can also optionally provide a description to help you and your team understand the purpose of this logic later.

Adding a description to the shared logical expression
Add a description for more clarity.

Step 2: Reuse the Logical Expression ​

Now that your logic is shared, you can apply it to any other item.

  1. Select the item where you want to apply the same logic.
  2. Ensure Visibility Mode is active.
  3. Instead of creating new logic, click on the Select an existing expression dropdown menu.
  4. Choose the named expression you created in Step 1.
Selecting an existing logical expression from the dropdown menu
Select the shared expression from the dropdown to apply it to the new item.

TIP

Changes made to a shared expression affect all items that use it, so you can update your survey logic from a single place.

Step 3: Manage Expressions from the Expressions Page ​

As your survey grows, you can inspect, rename, and clean up every logical expression—whether shared or unnamed—from a single place.

  1. Enable Advanced Mode using the toggle in the top toolbar.

  2. In the Build navigation drawer, select Expressions.

    Selecting Expressions in the Build navigation drawer with Advanced Mode enabled
    Open the Expressions page from the Build menu in Advanced Mode.
  3. Review the list of expressions for the form. The grid displays each expression's Name (or Unnamed, with a Shared badge on named expressions), a readable preview of the Expression using question and choice labels, the number of items under Used by, and its Status (Used, Unused, Deleted ref, or Used · deleted ref). The badge next to the heading shows how many expressions are currently unused.

  4. Use the header filters to narrow the list by Name, Expression text or item label, or Status.

    The Expressions page showing all form expressions, their usage counts, status badges, and column filters
    Filter and audit all named and unnamed expressions across your form.

Step 4: Inspect Usage, Rename, or Delete an Expression ​

Click any row in the Expressions grid to expand its details panel:

  1. Inspect usage and jump to items: Under Used by, view every question, section, page, or survey text that references the expression, along with the logic slot it controls (Hidden, Required, Read-only, or Invalid). Click Open in compose to jump straight to that item in the Compose view.
  2. Rename, share, or unshare: Edit Name or Description in the expanded row. Naming an expression shares it; clearing the name stops offering it in the Select an existing expression dropdown, while the expression and the items that already use it keep working.
  3. Delete unused expressions: Click Delete expression and confirm to remove an unused expression. If you need it back later, recover it from Build → Restore.
Expanded expression row showing Name, Description, read-only expression preview, Used by list with Open in compose button, and Delete expression button
Expand an expression to edit its name or description, jump to items that use it, or delete it when unused.

Sharing and unsharing an expression

Whether an expression is shared depends solely on whether it has a Name:

  • Naming an unnamed expression marks it Shared and makes it selectable in the Select an existing expression dropdown across the form.
  • Clearing the Name unshares it so it is no longer offered in the Select an existing expression dropdown, while the expression itself and every item that already uses it continue to work without change.

WARNING

You can delete an expression only when no active item uses it and no soft-deleted item references it. If a deleted item still points to the expression, its status shows Deleted ref and deletion is blocked—restore or permanently adjust that item first so restoring it later does not leave broken logic.