https://github.com/localgovdrupal/localgov_forms
https://github.com/localgovdrupal/localgov_forms
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/localgovdrupal/localgov_forms
- Owner: localgovdrupal
- License: gpl-2.0
- Created: 2021-08-10T12:23:39.000Z (almost 5 years ago)
- Default Branch: 1.x
- Last Pushed: 2025-06-05T13:58:13.000Z (about 1 year ago)
- Last Synced: 2025-06-05T14:34:12.398Z (about 1 year ago)
- Language: PHP
- Size: 408 KB
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LocalGovDrupal Forms
Provides additional configuration, styling and components for the Drupal Webform module.
## Additional components
* LocalGov Forms Date - A date input field based on the [GDS Date Input pattern](https://design-system.service.gov.uk/components/date-input/)
* 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.
## Dependencies
The geocoder-php/nominatim-provider package is necessary to run automated tests:
```
$ composer require --dev geocoder-php/nominatim-provider
```
The localgovdrupal/localgov_geo and localgovdrupal/localgov_os_places_geocoder_provider packages are needed to use the Ordnance Survey Places API-based address lookup 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.
## 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](https://www.drupal.org/project/config_ignore) module and under `/admin/config/development/configuration/ignore` add the following:
```
webform.webform.*
webform.webform_options.*
```