Drupal is a registered trademark of Dries Buytaert
drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)!

Webform Element Library lets site builders create named groups of webform elements, for example an address block, a contact block, or a consent block and reuse them across multiple webforms. Each group is stored as a content entity containing a YAML definition of its elements. Because elements are injected from the central library item at render time rather than copied, any change to a library item is immediately reflected in every webform that embeds it.

Features

  • Define a group of webform elements once and embed it in any number of webforms.
  • Edit the group in one place. Every form that references it updates automatically.
  • Embed the same group multiple times in a single form without key or submission-data collisions, thanks to namespaced child keys ({container_key}__{child_key}).
  • Internal conditional logic (#states) keeps working even when the host form has fields with the same name.
  • External conditions and handlers can target individual fields by their predictable namespaced key.

Post-Installation

  1. Navigate to Administration » Structure » Webform element library (/admin/structure/webform-library).
  2. Select Add library item, give it a label, and save.
  3. Add elements with the Add element button, or paste raw YAML in the Source code (YAML) section.
  4. In any webform, add a Reusable element element and select the library item to embed.

Access is controlled by the Administer webform reusable elements permission.

Additional Requirements

Requires the Webform module, including its Webform UI sub-module.

Similar projects

Unlike copying or cloning elements between forms, this module keeps a single source of truth: edits propagate to every form that embeds the group, rather than leaving stale copies.

Activity

Total releases
1
First release
Jun 2026
Latest release
15 hours ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
1.0.x-dev Dev Jun 23, 2026