confirm
Configuration options
Examples and code snippets
Confirm action with modal

actions:
- children:
- type: action.action-list
options:
title: Add an employee
isSequential: true
actions:
- type: action.confirm
options:
isConfirmedAutomatically: false
onConfirmed:
type: action.execute-entity
options:
provider: DATA_PROVIDER_DYNAMIC
entity: default/form
method: create
data:
firstname: =@ctx.components.firstname.state.value
lastname: =@ctx.components.lastname.state.value
phone: =@ctx.components.phone.state.value
modal:
title: Add an employee
description: Are you sure you want to add a new employee?
confirm: 'Add'
cancel: 'Cancel'
- type: action.go-back Confirm action

Last updated
Was this helpful?