Confirmation dialog
Certain actions need to be confirmed first, such as deletion, using a modal dialog.
- When users click the confirmation button, the modal dialog is closed and the action is triggered (handler).
- When users click the cancel button, the modal dialog is closed and nothing happens.
Status
Release Available | Status | Framework Name |
---|---|---|
Initial | Current | MUI and Mint |
Implementation Example
In the following example, if a user clicks Skip, a Confirmation dialog box appears.
Code JSON
"componentActions": [{
"name": "cancel",
"actionType": "normal",
"label": "Skip",
"confirmation": {
"type": "prompt",
"title": "Are you sure?",
"content": "<p>No providing financial information will dramatically decrease the possiblity that you will be offered a loan.</p><p>Are you sure that you want to skip the financial informaiton step?</p>",
"showConfirmButtons": true,
"confirmText": "Yes",
"cancelText": "No"
},
"handler": {
"assignments": [{
"field": "$nav(ApplicationSteps).appearance(current);",
"value": 2
}]
}
},