Advertising sustains the DA. Ads are hidden for members. Join today

On this page

Configuration

Last updated on
26 August 2019

Basic elements of the GOV.UK theme can be enabled/disabled under the theme's settings. Setting the Phase banner to "None" will disable the Phase banner.

Config 1

On the basis of never hard coding anything, "GOV.UK" is not hard coded and your site's name is composed of the "Site name" and "Slogan" as below. In the vast majority of cases, the "Site name" will be GOV.UK and your department/section name would be the "Slogan".

Config 2

Webforms

The theme includes full client side GOV.UK validation for Webform required fields. In order to enable this functionality, HTML5 client side validation needs to be disabled.

In the administration view of your Webform, select the "Settings" tab and then select "Form". Scroll down to the "FORM BEHAVIORS" section and check the "Disable client-side validation" checkbox as below:

Config3

If the user does not complete a required field (or other validation rule fails) then the GOV.UK validation error CSS is applied as below:

Config4

Along with the "There is a problem" box at the top of the page:

Config5

The "Enter the first line of your address" text is the normal Webform "Required message" under the "Form validation" section.

For Composite Elements like the Address element, the required error message must be added as custom properties under the "Advanced" tab as below:

Config6

The field name is composed of the field ID, 2 underscores and "required_error" as above.

Help improve this page

Page status: No known problems

You can: