Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

LocalGov Forms

Security covered Under active development 178 sites

Part of the Localgov ecosystem · 82 projects

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.*
Drupal 10–11

Ask your assistant about LocalGov Forms

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
8
Tracked since
Jul 2025
Latest release
1 month ago
Releases (12 mo)
7 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.3.0 Stable 10–11 Sep 7, 2026
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