1

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?

2

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.