Record Delete
- Triggered when a record is deleted from a view’s “delete” link
// Change view_1 to the view you want to listen to
$(document).on('knack-record-delete.view_1', function(event, view, record) {
// Do something after the record is deleted
alert('Deleted record with ID: ' + record.id);
});
Events
Event | Description |
---|---|
knack-record-delete.any | triggered by all views |
knack-record-delete.table | triggered by all tables |
knack-record-delete.view_1 | triggered by form specified by key |
Parameters
Parameter | Description |
---|---|
view | a JSON object of the view |
record | a JSON object of the record deleted that was stored in the view |
Updated almost 4 years ago
What’s Next