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). 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). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). 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 enhances the Drupal Webform module with improved default settings and styling for easier use in local government contexts. It includes features like Ajax submission, submit-once functionality, warnings for unsaved changes, and a simplified interface by hiding less common webform elements. It also provides additional components for date inputs and address lookups.

This module is part of the LocalGov Drupal distribution.

It provides additional configuration, styling and components for the Drupal Webform module.

Install

PLEAE NOTE: By default, on initial install, localgov_forms will update the default webform.settings config:

Specifically, it:

  • Enables Ajax by default for forms (individual forms can override this).
  • Enables submit-once (prevents double button presses / slow connection retries etc.)
  • Disables the browser back button during submission
  • Warns about unsaved changes
  • Enables the submission log.
  • Sets plain-English defaults for the confirmation message
  • Removes chevrons from wizard/preview button labels.
  • Excludes a range of webform elements that are less likely to be used so the UI is easier for editors to navigate.

If you have already installed Webform and wish to preserve your existing settings, add the following to settings.php before installing this module (it can be removed afterwards):

$settings['localgov_forms_skip_webform_config'] = TRUE;

Additional components

  • LocalGov Forms Date - A date input field based on the GDS Date Input pattern
  • LocalGov address lookup - Webform element with a configurable address lookup backend. Geocoder plugins act as backends, see installation note below.

Plugins

  • Personally Identifiable Information (PII) redactor from Webform submissions: At the moment, a plugin manager `plugin.manager.pii_redactor` and a sample plugin are provided.

Dependencies

Geocoder Plugins

To use the address field look-up a Geocoder Provider is required.

UK Councils will probably want to use the free-to-them OS Places geocoder. To enable this install LocalGov Geo module and the OS Places Geocoder Provider plugin. Once these packages are installed, the *Localgov OS Places* plugin will become available for selection from the Localgov address lookup element's configuration form.

In other countries another Geocoder Provider will be required.

For automated tests the Nominatim Geocoder Provider is necessary.

Editing webforms

Webforms in Drupal are config entities, therefore are by default exported with the website configuration.
It is often desirable that webforms are built and maintained by non-developers.
To avoid the configuration being removed by deployments, install the
Config ignore module and under /admin/config/development/configuration/ignore add the following:

webform.webform.*
webform.webform_options.*

Activity

Total releases
5
First release
Jul 2025
Latest release
2 weeks ago
Releases (12 mo)
4 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.1.0 Stable Jul 3, 2026
1.1.0-beta12 Pre-release Apr 7, 2026
1.x-dev Dev Jan 22, 2026
1.1.0-beta11 Pre-release Dec 1, 2025
1.0.0-beta11 Pre-release Jul 17, 2025