Skip to content

confirm

confirm shows a confirm dialog on which the user can decide to proceed. actionValues:

actionValues
message Message to show.
title Title to show. (optional)
ok OK-Button text. (optional)
cancel Cancel-Button text. (optional)
js Javascript code to modify the confirm behavior. (optional)
in js function setOkButtonText set the ok button text as string
setCancelButtonText set the cancel button text as string
showOkButton show the ok button as boolean
showCancelButton show the cancel button as boolean
setTitle(text) set the title as string
setMessage(text) set the message as string
object current insight record.
object.$payload payload of previous actions.
userData user profile
{
    "label": "Confirm what you're doing",
    "icon": "icon-checkmark-circle",
    "action": "confirm",
    "actionValues": [
        {
            "message": "Are you sure?",
            "ok": "Yes",
            "cancel": "Never",
            "js": "setTitle('Confirmation')"
        }
    ]
}