Actions

confirm

3min

The confirm action creates a pop-up prior to an action being performed. This usually serves as a safety net for a user attempting either a destructive action or an action that could have other implications for the user, such as asking whether a user wishes to proceed with deleting a record.

This action can also be used as a confirmation to provide feedback after an action has been performed.

The action allows for customizable wording on the confirmation modal and can be set to take place automatically or not.

Configuration options

A confirm action can be set up in various ways:

  1. You can use it as a confirmation to request confirmation before performing an action
  2. You can use it as a confirmation after an action has successfully been performed

Examples and code snippets 

Document image


This example has a confirm action with a nested execute-entity action. After pressing the button 'Update employee', a modal will be displayed - here, you confirm if you wish to proceed. When confirmed, the execute-entity action will proceed.



Example:

See the full example of confirm with modal in GitHub.

confirm-with-modal




Confirm action
Confirm action




This example has a confirm action nested inside an execute-entity action. When the form is submitted, the confirm action will show a pop-up stating that "Employee was added successfully". Note that as seen in the image, there is no option to confirm since isConfirmedAutomatically is set to true. But you can see the result of the automatically confirmed action by tapping on "See the confirmation".

Example:

See the full example of confirm in GitHub.

See the helper file here.

confirm




Updated 04 Nov 2024
Doc contributor
Did this page help you?