form.validate-input
Check a text, email or number input: required, length, pattern and min/max, with GOV.UK messages.
validate_input in Python
1.0.0
py rs ts
49 tests
Apache-2.0
form.address
Check a UK or international postal address form: required lines, lengths, country and postcode.
A group of 2: validate_address, address_format
1.0.0
py rs ts
37 tests
Apache-2.0
form.iso-date
Check a date picker value (YYYY-MM-DD) against required, past/future and min/max rules, timezone-safe.
validate_iso_date in Python
1.0.0
py rs ts
24 tests
Apache-2.0
form.date-parts
Check a date typed into day, month and year boxes, with GOV.UK's error messages and the boxes to mark in error.
validate_date_parts in Python
1.0.1
py rs ts
49 tests
Apache-2.0
form.file-check
Check files chosen in an upload field: accept types, size, empty files and how many, with GOV.UK messages.
A group of 3: validate_files, accepts_file, format_file_size
1.0.0
py rs ts
52 tests
Apache-2.0
react.form.error-summary React ^19 · TypeScript only
A "There is a problem" box linking to each field in error, focused on arrival, built from a validator's fields (GOV.UK).
Not available in Python
1.0.1
ts
21 tests
Apache-2.0
form.character-count
The GOV.UK character count message for a text box: characters or words left or over a limit, with a threshold.
character_count in Python
1.0.1
py rs ts
32 tests
Apache-2.0