Skip to content

Close Current Popup

Close the current popup from its Close, Cancel, OK or Done button, optionally returning a result.

InteractionsDocumentation revised: 2026-10-21

Interactions: Close Current Popup

Close the current popup from its Close, Cancel, OK or Done button, optionally returning a result.

Overview

This closes only the popup containing the bound object, with no Page Code. Place it inside the popup; it does not navigate the main page.

How to close or return a result

By default, this behavior closes the popup without returning a value. To send a result to the opener, select Return data when this button is clicked (optional) and enter a result expression.

  • Cancel / Close usually returns no result.
  • OK / Done can return { confirmed: true } or another value the opener expects.
  • Enabled controls this behavior.
  • For a condition, cursor style, or disabled appearance, expand Advanced options and configure the applicable fields.
TextText
// Result expression
({ confirmed: true, motorId: selectedMotorId })

Limitations and troubleshooting

Use only in a popup context. Returned data does not write to a PLC; use Write Tag / Write Tag Bit, subject to host permissions and auditing.

Close Popup editor showing Enabled and optional Return data
Figure 1: Close Popup editor

The containing popup closes while the underlying page stays open; enable Return data only when the opener needs a result.

Click the image again or press Esc to close