Display Confirmation Dialog
Display Confirmation Dialog - kintone.showConfirmDialog(config)
Display a confirmation dialog that prompts the user for confirmation and retrieves their choice.
Function
Desktop
kintone.showConfirmDialog(config)
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| config | Object | Yes | The dialog configuration. |
| config.title | String | Optional | The title string. If ignored, it will not be displayed. |
| config.body | String | Optional | The dialog body text.\n, \r, \r\n are interpreted as line breaks.If ignored, it will not be displayed. |
| config.showOkButton | Boolean | Optional | The visibility of the OK button.
|
| config.okButtonText | String | Optional | The text to display on the OK button. If ignored, "OK" will be displayed according to the logged-in user's language. |
| config.showCancelButton | Boolean | Optional | The visibility of the Cancel button.
|
| config.cancelButtonText | String | Optional | The text to display on the Cancel button. If ignored, "Cancel" will be displayed according to the logged-in user's language. |
| config.showCloseButton | Boolean | Optional | The visibility of the Close button.
If not displayed, the function to close the dialog with the Esc key will also be disabled. |
Returns
A Promise object.
The following values can be retrieved when the Promise object is fulfilled:
| Property | Type | Description |
|---|---|---|
| result | String | The action selected by the user.
|
Sample Request
|
|
Available Pages
Desktop
However, it cannot be used on the following pages:
- Search results
- Marketplace
- Plug-in settings page