Save Event
Save Event - app.record.create.submit
An event triggered when the save button is clicked on the record create page.
This event does not hold the Record ID in the event object - use the following API instead to obtain the Record ID of the created record:
Save Success Event
Function
Desktop
app.record.create.submit
Mobile
mobile.app.record.create.submit
Properties of the Event Object
PROPERTY | TYPE | DESCRIPTION |
---|---|---|
appId | Number | The App ID. |
record | Object | A record object that holds data inputted by the user. |
type | String | The event type. |
Cancel Actions
Actions can be cancelled by doing one of the following:
- Show field errors
- Show record errors
- return
false
Available Event Object Actions
Running actions after waiting for asynchronous operations to finish
By returning a kintone.Promise
object, you can run actions after waiting for asynchronous operations to finish. If an error occurs and the Thenable
object is rejected, the event will be cancelled.
Sample Request using the kintone.Promise object returned by the kintone.api()
|
|
Sample Request using the kintone.Promise Constructor
|
|
Limitations
- Values from the Attachment field cannot be retrieved.
- Refer to the Limitations section of the following article for more details:
Event Handling