Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: Layout Paragraphs 3.0.0-beta5 — New beta version released for module layout_paragraphs (3.0.0-beta5). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

Webform Element Library

No security coverage

Part of the Webform ecosystem · 216 projects

View on drupal.org

This module allows you to create reusable blocks of form elements, like an address or contact section, and embed them into multiple webforms. Any changes made to the block in the central library are automatically reflected in all webforms that use it. This ensures consistency and simplifies maintenance by having a single source of truth for common form components.

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.

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
1
Tracked since
Jun 2026
Latest release
3 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.x-dev Dev 10–11 Jun 23, 2026