- Issue created by @smurfxx
- 🇺🇸United States jrockowitz Brooklyn, NY
In a form alter hook, you can change the
$form['progress']
weight or alter the $form array.ChatGPT suggested the below approach, which is completely valid and the simplest solution
/** * Implements hook_form_alter(). */ function mymodule_form_alter(array &$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { // Check if the form ID matches the webform submission form. if ($form_id == 'webform_submission_form') { // Save the progress element into a temporary variable. $progress_element = $form['progress']; // Remove the progress element. unset($form['progress']); // Add the progress element to the end of the form. $form['progress'] = $progress_element; } }
Automatically closed - issue fixed for 2 weeks with no activity.