Save Success Event

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

An event triggered after the record has been successfully saved after clicking the save button on the record edit page.

Function

Desktop

app.record.edit.submit.success

Mobile

mobile.app.record.edit.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.
type String The event type.
Available Event Object Actions

None

Sample showing the datetime the record was updated

1
2
3
4
5
// Display the updated date time after saving.
kintone.events.on('app.record.edit.submit.success', function(event) {
  var record = event.record;
  alert('The updated date time is ' + record.Updated_datetime.value + '.');
});

Sample showing a redirect to a user specified URL after saving

If a redirect URL is specified, the event handler will redirect the page to the specified URL after returning the event object. If null, or no value is specified, the page will not redirect.

1
2
3
4
5
// Redirect the user's web browser to the specified URL after saving
kintone.events.on('app.record.edit.submit.success', (event) => {
  event.url = 'http://kintone.dev';
  return event;
});

Notes

  • This event cannot be used with an app embedded on a space.
  • The event will not trigger if the record does not successfully save.