Onload Event
Onload Event (desktop) - app.record.create.show
An event triggered after the record create page is displayed on the desktop.
Function
app.record.create.show
Triggered Timing
- After the record create page is displayed, i.e. when there is an
/edit
in the URL of the page. This can be displayed in the following ways:- by clicking the New record icon (the plus icon) on either the record list page or record details page.
- by clicking the Duplicate icon (the paper icon) on the record details page.
Properties of the Event Object
PROPERTY | TYPE | DESCRIPTION |
---|---|---|
appId | Number | The App ID. |
reuse | Boolean | true if the page is a duplicate of a record (i.e. the "Duplicate" icon was clicked on a record to display the page), false if the page is a regular record create page. |
record | Object | The record object, containing the default value of the fields. |
type | String | The event type. |
Available Event Object Actions
- Overwrite field values
- Enable/Disable field edits
- Show field errors
- Show record errors
- Run Lookup fields
- Clear copied Lookup field values
- By returning a
kintone.Promise
object in the event handler, event object actions can be processed after waiting for asynchronous processes in the event handler to finish.
Onload Event (mobile) - mobile.app.record.create.show
An event triggered after the record create page is displayed on the mobile.
Function
mobile.app.record.create.show
Triggered Timing
- After the record create page is displayed on the mobile. This can be displayed in the following ways:
- by clicking the "New" icon (the plus icon) on the record list page.
- by clicking the "Duplicate" icon (the paper icon) on the record details page.
Properties of the Event Object
PROPERTY | TYPE | DESCRIPTION |
---|---|---|
appId | Number | The App ID. |
reuse | Boolean | true if the page is a duplicate of a record (i.e. the "Duplicate" icon was clicked on a record to display the page), false if the page is a regular record create page. |
record | Object | The record object, containing the default value of the fields. |
type | String | The event type. |
Available Event Object Actions
- Overwrite field values
- Enable/Disable field edits
- Show field errors
- Show record errors
- Run Lookup fields
- Clear copied Lookup field values
- By returning a
kintone.Promise
object in the event handler, event object actions can be processed after waiting for asynchronous processes in the event handler to finish.