Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Block Layout Accordion 1.0.2 Minor update available for module block_layout_accordion (1.0.2). Release: Canvas interactive toggle 1.0.2 Minor update available for module canvas_interactive_toggle (1.0.2). Release: Views HTTP Client 1.0.2 Minor update available for module views_http_client (1.0.2). Release: Block Layout Accordion 1.0.1 Minor update available for module block_layout_accordion (1.0.1). Release: Canvas interactive toggle 1.0.1 Minor update available for module canvas_interactive_toggle (1.0.1). Release: Video.js (HTML5 Video Player) 10.0.0-alpha1 First alpha version released for module videojs (10.0.0-alpha1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Release: Audit Trail 1.0.0-alpha7 New alpha version released for module audit_trail (1.0.0-alpha7). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

LocalGov Forms

119 sites Security covered Drupal 10–11 Localgov ecosystem
View on drupal.org

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.*

Depends on

Dependencies of the latest stable release

  • Webform
  • Webform webform_ui
  • geocoder Drupal core
  • inline_form_errors Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Jul 2025
Latest release
2 weeks ago
Releases (12 mo)
6 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.2.0 Stable 10–11 Aug 17, 2026
1.1.1 Stable 10–11 Jul 28, 2026
1.1.0 Stable 10–11 Jul 3, 2026
1.1.0-beta12 Pre-release 10–11 Apr 7, 2026
1.x-dev Dev 10–11 Jan 22, 2026
1.1.0-beta11 Pre-release 10–11 Dec 1, 2025
1.0.0-beta11 Pre-release 10–11 Jul 17, 2025