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?


1 Answer 1


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 and acknowledge you have read our privacy policy.

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