I try to duplicate form button on the same page. The button is printed like this


The problem is that once I render the button, the second one is not rendered again later in DOM. How to overcome this? Thank you


From the top of my head, I would just duplicate the button in hook_form_alter() and render it as two separate buttons.

Some code examples here: https://www.drupal.org/node/1415334

And here: How to add extra save buttons

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.