Skip to content

Instantly share code, notes, and snippets.

@bgriggs1
Last active December 13, 2015 22:59
Show Gist options
  • Save bgriggs1/4988787 to your computer and use it in GitHub Desktop.
Save bgriggs1/4988787 to your computer and use it in GitHub Desktop.
Handling a record update event triggered by Knack
// change view_1 to the view you want to listen to
$(document).on('knack-record-update.view_1', function(event, view, record) {
// view is a json object of the form
// record is a json object of the record inserted by the view (form)
alert('updated a record for view: ' + view.key);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment