Hi,

I need to rebuild all the subforms whenever one of them are submitted, but I couldn't find any way to do this, the only subform that is rebuilt is the current submitted one and I don't have a submit_all button, just the subforms ones.

Is there any way to rebuild all of them when one is submitted?

Thanks!

Comments

casey’s picture

$form['my_node_subform'] = array(
   '#type' => 'subform',
  // ..
   '#submit' => 'subform_submit_all', // <---
);
pcambra’s picture

Hi,

That submits every subform when one submit is clicked, I don't want that behavior, I need that when one form is submitted, the rest get rebuilt.

Btw subform_submit_all should be invoked inside an array I think

Thanks!