Confirm
Confirm Construct is used to show dialog that prompts users to confirm or cancel specific statements, actions, or conditions before executing further logic. It is commonly used to prevent accidental operations such as deletions, form submissions, or critical updates.
The purpose of this construct is to provide an easy way to ensure that certain conditions or actions are explicitly confirmed by the user.
Follow the below steps to add the Confirm construct in a logic flow:
- In the designer canvas of a logic flow, drag and drop the Confirm construct into the flow.
- Double-click the construct to configure the properties as required and then click save.
| Property | Description | Comments |
|---|---|---|
| Label | Labels help developers quickly understand each step in the logic flow without examining the details of the construct. | It is recommended to provide a simple precise label that can improve the readability. |
| Message | Allows user to assign static message or property (dynamic message) using expression builder. | The main confirmation message prompting the user for action. |
| Headers | Specify header that is displayed at the top of the confirm box. | |
| Comment | Specify whether to comment this construct or not. Either Yes or No. | If marked as Yes, the construct is treated as a commented expression and ignored in code generation. |
| Description | Provides details about the Confirm purpose and behavior. | Helps in understanding Confirm construct. |
Note: An asterisk (*) denotes that the property is mandatory for adding the Confirm construct.
The success message displays upon successfully adding the construct.
Edge Paths
Double-click on the edge path to configure the properties as required and then click Save.
| Property | Description | Comments |
|---|---|---|
| Path | Select the edge path. Choose one of below: yes no after | yes: Used to specify the logic that executes when confirm. no: Used to specify the logic that executes when cancel. after: Used to specify the logic run outside the confirm. |