2

I have implemented a custom field type.

Is there any way to register a javascript event handler that is called before my custom field is saved?

Kristian J.
  • 145
  • 5

1 Answers1

2

Attach a submit event to the #entry-form element:

$('#entry-form').submit(function(e) {
    // code run on submit here
});
Kristian J.
  • 145
  • 5