Skip to content

trigger events from buttonbar buttons

You can modify the buttons in the button bar to trigger workflow events. If these events are triggered from buttons while a resource is edited (save, update and contiune, the buttons in /create and /edit) they will send the current data to the prototype output of the workflow event element.

Syntax:

{
"bakery_resource_module": "module_identifier",
"bakery_resource": {
"buttons": {
"button_key": {
"trigger": "event_identifier"
}
}
}
}

Button keys:

  • save for default ‘save’ button in create view
  • update for default ‘save’ button in update view
  • continue for default ‘save and continue’ button in update view
  • delete for default ‘delete` button in show view
  • edit for default ‘edit` button in show view
  • create for default ‘create’ button in index view

See layout -> components -> Customizing the default Buttons for more Info.