Register all event handlers using
kintone.events.on(). See Event handling for usage details.Onload event
Triggered after the record detail page is displayed.- Desktop — app.record.detail.show
- Mobile — mobile.app.record.detail.show
Event type:
Available actions: Return a
app.record.detail.showTriggered timing: After the record detail page is displayed.Event object properties:| Property | Type | Description |
|---|---|---|
type | String | The event type. Returns app.record.detail.show. |
appId | Number | The app ID. |
recordId | Number | The record ID. |
record | Object | The record data displayed on the page. |
Promise to wait for asynchronous operations before the page continues rendering.Delete event
Triggered when the Delete button is clicked in the confirmation dialog on the record detail page, before the record is deleted from the server.- Desktop — app.record.detail.delete.submit
- Mobile — mobile.app.record.detail.delete.submit
Event type:
Canceling the deletion:You can cancel the deletion by doing one of the following:
app.record.detail.delete.submitEvent object properties:| Property | Type | Description |
|---|---|---|
type | String | The event type. Returns app.record.detail.delete.submit. |
appId | Number | The app ID. |
recordId | Number | The record ID. |
record | Object | The record data of the record to be deleted. |
- Set a record error on
event.error - Return
false
Promise to delay the deletion until asynchronous operations finish.Update status event
Triggered when an action button in the process management panel is clicked on the record detail page, before the status update is sent to the server.- Desktop — app.record.detail.process.proceed
- Mobile — mobile.record.detail.process.proceed
Event type:
Canceling the status update:You can cancel the status update by doing one of the following:
app.record.detail.process.proceedEvent object properties:| Property | Type | Description |
|---|---|---|
type | String | The event type. Returns app.record.detail.process.proceed. |
appId | Number | The app ID. |
recordId | Number | The record ID. |
record | Object | The record data at the time the action was triggered. |
action | Object | The action that was clicked. |
action.value | String | The name of the action. |
nextStatus | Object | The status the record will transition to. |
nextStatus.value | String | The name of the next status. |
assignee | Object | The selected assignee (if applicable). |
assignee.value | Array | An array of user objects for the selected assignee. |
- Set a record error on
event.error - Return
false
Promise to wait for asynchronous operations before the status update proceeds.