Record Create

  • Triggered when specific form has been submitted to create a new record
  • Often used for making updates to the newly created record or calling other APIs with it
  • Does not fire for records created via form rules - only for those created from the form itself
// Change view_1 to the view you want to listen to
$(document).on('knack-record-create.view_1', function(event, view, record) {
  // Do something after the record is created via form submission
  alert('created a new record for view: ' + view.key);
});

Events

EventDescription
knack-record-create.anyTriggered by all forms
knack-record-create.view_1Triggered by form specified by key

Parameter

ParameterDescription
viewThe form (JSON object)
recordThe created record, including its ID (JSON object)

What’s Next