Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Multistep Form Framework

Security covered Maintenance fixes only 73 sites

This module provides a developer-friendly framework for building multi-step forms in Drupal. It uses a YAML plugin system to define form steps and allows for flexible configuration and organization of complex forms.

This module provides a framework for creating multistep forms in Drupal 8.x. While similar notable projects exist on Drupal.org, the goal of this project is to simplify the process of creating multistep forms for developers while maximizing flexibility in configuration. The module doesn't provide any kind of UI, it's created only for developers.

Module provides Yaml plugin system like *links.action.yml, where you can specify each step, and also replace/extend plugin itself. The benefits of such approach are:

  • One place to configure everything
  • You can specify whatever namespace you want for steps, which is good if you have a few multistep forms in one module because you will be able to sort them logically

Usage

1. Create your form, and extend it with \Drupal\multistep_form_framework\Form\MultistepForm class. The only required thing is to set form id ::getFormId, which later will be used to identify plugin.
2. Add MODULE_NAME.multistep_wizard.yml file to your module.
Example:

your_form_id_here:
  steps:
    -
      id: greetings
      class: \Drupal\multistep_form_framework_examples\Form\BuyBookStep\Greetings
    -
      id: book_attributes
      class: \Drupal\multistep_form_framework_examples\Form\BuyBookStep\BookAttributes
    -
      id: description
      class: \Drupal\multistep_form_framework_examples\Form\BuyBookStep\Description
    -
      id: graz
      class: \Drupal\multistep_form_framework_examples\Form\BuyBookStep\Congratulation

How does this module differ from other community projects and examples?

The Webform allows building multi-step, wizard-style forms and provides a decent UI. If you don't need to deal with non-trivial tasks like multiple entities generation or some insane widgets then I encourage you to use Webform instead of this module.

Multi Step Form Example provides a intuitive demonstration of creating multistep forms. This framework differs in that it eliminates the need for a StepManager class and allows for iterations to jump arbitrarily to any step, even based upon custom logic of the previous submit.

πŸ‡ΊπŸ‡¦

This module is maintained by Ukrainian developers.
Please consider supporting Ukraine in a fight for their freedom and safety of Europe.
Drupal 8–11

Ask your assistant about Multistep Form Framework

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Jan 2024
Latest release
9 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.x-dev Dev 8–11 Jan 9, 2026
2.0.0 Stable 8–11 Nov 5, 2025
2.0.0-rc2 Pre-release 8–10 Jan 16, 2024
2.0.0-rc1 Pre-release 8–10 Jan 16, 2024