Save Success Event

Save Success Event - app.record.create.submit.success

An event triggered after the record has been successfully saved after clicking the save button on the record create page or the record duplicate page.
This event holds the Record ID of the created record in the Event Object.

Function

Desktop

app.record.create.submit.success

Mobile

mobile.app.record.create.submit.success

Properties of the Event Object

PROPERTY TYPE DESCRIPTION
appId Number The App ID.
recordId Number The Record ID.
record Object A record object that holds data of the saved record.
If the record is successfully added and the user has no view permissions, null is returned.
type String The event type.

Available Event Object Actions

None

Sample showing the record ID saved

1
2
3
4
5
// Display the record ID published after saving.
kintone.events.on('app.record.create.submit.success', function(ev) {
  var record = ev.record;
  alert('The record ID is ' + record.$id.value + '.');
});

Limitations

  • This event cannot be used with an app embedded on a space.
  • The event will not trigger if the record does not successfully save.
  • Refer to the Limitations section of the following article for more details:
    Event Handling