I'm trying to figure out how to grab data from the previous step of a multi-step webform after a user progresses and I'm coming up blank.

Is there a particular hook that gets fired whenever a users progresses forward in a multi-step form or do I need to add a custom submit handler?

Thank you!

1 Answer 1


I was able to get this working.

In my hook_form_alter() function I had to add a custom submit handler to the wizard_next action:

function my_module_form_alter(&$form, FormStateInterface $form_state, $form_id) {
    if($form_id == 'my_form') {
        $form['actions']['wizard_next']['#submit'][] = 'my_module_custom_submit';

function my_module_custom_submit(array $form, \Drupal\Core\Form\FormStateInterface $form_state) {
 // Custom submit behavior

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.