Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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.

Activity

Total releases
2
First release
Nov 2025
Latest release
6 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
2.x-dev Dev Jan 9, 2026
2.0.0 Stable Nov 5, 2025