Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I use field group in a form for creating a multi page form.
I need to create a button
$form['buttons']['another_button'] = array(
'#type' => 'submit',
'#value' => 'Classer les valeurs',
'#submit' => array('jquery_form_submit'),
);
and need to put it in a specific group page, how can i do that?
Comments
Comment #1
nils.destoop CreditAttribution: nils.destoop commentedYou can add it to the group this way:
$form['#group_children']['another_button'] = 'machine name of your group';
Comment #2
zoraxthanks !
Comment #3
simeWorkaround supplied at #1