Hide a dialog
Function: Hide a dialog
This action allows you to close the topmost dialog box currently displayed on your screen. If you have multiple dialogs open, calling this action will close the one that is most recently opened and visible. Repeatedly using this action will close dialogs one by one, starting from the top.
Input
- Refresh Page After Close:
- Type: True/False (BOOLEAN)
- Description: Decide whether the main page should automatically reload after the dialog is hidden.
- Set to
Trueif you want the page to refresh, for example, to show updated data. - Set to
Falseif you want the page to remain as is, allowing the user to continue interacting with it without interruption.
- Set to
Output
This action does not produce any direct output that can be used in subsequent steps. Its effect is purely visual and functional within the application's user interface.
Execution Flow
Real-Life Examples
Here are some practical ways you can use the "Hide a dialog" action in your application:
Example 1: Dismissing a Confirmation Message
Imagine you have a simple "Are you sure?" confirmation dialog that appears before deleting an item. After the user clicks "Yes" or "No", you want the dialog to disappear without reloading the entire page.
- Inputs:
- Refresh Page After Close:
False
- Refresh Page After Close:
- Result: The confirmation dialog instantly closes, and the user remains on the current page, ready to continue their work or see the immediate effect of their action (e.g., the item is removed from a list without a full page refresh).
Example 2: Closing a Form After Successful Submission
Consider a dialog box that contains a form for creating a new record (e.g., adding a new customer). Once the user successfully submits the form, you want to close the dialog and update the main list of customers.
- Inputs:
- Refresh Page After Close:
True
- Refresh Page After Close:
- Result: The new customer form dialog closes, and the main page automatically reloads. This ensures that the updated list of customers, now including the newly added one, is displayed to the user.
Example 3: Hiding an Information Pop-up
You might have a dialog that displays important information or instructions. After the user has read it, they click an "OK" or "Got It" button to dismiss it. There's no need to refresh the page.
- Inputs:
- Refresh Page After Close:
False
- Refresh Page After Close:
- Result: The information dialog disappears, and the user can continue interacting with the underlying page exactly where they left off, without any disruption from a page reload.