Skip to content
MyAppBuilder
StableAction

Close modal

Overview

Closes the modal page that is currently open.

Purpose

Use it on Cancel buttons inside a modal and after a form inside the modal has been saved successfully.

Inputs

  • No settings.

Configuration

  • Typically the last action of a form's On success list: Show message → Refresh data → Close modal.

Outputs

  • None.

Example

Close after saving

Example
Form › On success:
  1. Show message  “Booking saved”
  2. Close modal

Errors

  • None. If no modal is open, nothing happens.

Limitations

  • Closes only the top-most overlay. When a drawer is open above the modal, the drawer closes first (Close modal and Close drawer behave the same at runtime).

Advanced

  • Schema: { type: "close_modal" }. Pops the last entry of the overlay stack regardless of its kind.

Related

Was this helpful?