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

EventDescription
knack-record-delete.anytriggered by all views
knack-record-delete.tabletriggered by all tables
knack-record-delete.view_1triggered by form specified by key

Parameters

ParameterDescription
viewa JSON object of the view
recorda JSON object of the record deleted that was stored in the view