Hi,

I am trying to add my own submit handler to the editable field form, however, it never get called.

And it has been raised by others as well,

https://drupal.stackexchange.com/questions/222809/editable-fields-custom...

Any suggestions will be greatly appreciated!

Comments

foredoc created an issue. See original summary.

joelpittet’s picture

Status: Active » Fixed

The posted response is correct, remember it's an ajax form, also there is a submit handler on the save button that overrides the form's submit handler.

What I wrote over there.

This is correct due to form_execute_handlers() ignoring the form level submit handlers because there is a button's submit handler on the form. I've tested this manually and it works. $form['actions']['submit']['#submit'][] is the right way to add another button submit handler.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.