Browse the docs

Close a panel

Closes a panel that is showing, and answers a step still waiting on it.

Close panel id

Details #

Closes the panel with that id. A Show a panel step that is still waiting on it ends normally (it is not cancelled) with result as its button and the values entered so far, so one macro can finish another macro's panel.

If no panel has that id, the step fails with "no panel called 'dl' is showing; it may have been closed". Pressing Escape on a panel also closes it, so a macro that closes a panel it showed a while ago may find it gone.

Parameters #

ParameterTypeRequiredValuesWhat it does
idtextYesThe panel's id.
resulttextWhat a step still waiting on the panel gets as its button.

Every step also accepts label, onFailure, timeout and dryRunSafe.

Examples #

Show a status, work, close it
Do
  1. Show panel “Tidying up” and carry on
  2. Wait 2 s
  3. Close panel “busy”
Open in Switchboard to try it

See also #

Show a panel, Update a panel, Read a panel