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
Event | Description |
---|---|
knack-record-create.any | Triggered by all forms |
knack-record-create.view_1 | Triggered by form specified by key |
Parameter
Parameter | Description |
---|---|
view | The form (JSON object) |
record | The created record, including its ID (JSON object) |
Updated almost 4 years ago
What’s Next