Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This is the first stable release and is covered by the security advisory policy.
About
This module provides additional configuration, styling and components for the Drupal Webform module, built to work with the with LocalGov Drupal distribution.
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.
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.
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;
Known issues
There is a known bug where the address lookup element throws an error if the LocalGov Forms webform settings are not included at install time. See more at #3584172