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
react.form.validated-input React ^19 · TypeScript only
A text, email or number input that checks itself with form.validate-input and shows the error accessibly.
Not available in Python
1.0.0
ts
14 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
react.form.date-field React ^19 · TypeScript only
A labelled date picker (<input type="date">) with min and max, checked by form.iso-date, its error shown accessibly.
Not available in Python
1.0.0
ts
14 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.money-input
Read a typed amount as minor units for its currency and locale, check min/max, and format it back.
A group of 3: parse_money_input, format_money_input, money_input_format
1.0.0
py rs ts
61 tests
Apache-2.0
react.form.money-field React ^19 · TypeScript only
A money input with its currency symbol, locale separators and min/max, read and checked by form.money-input.
Not available in Python
1.0.0
ts
14 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.file-upload React ^19 · TypeScript only
A labelled file upload field: accept, size and how-many checked by form.file-check, the chosen files listed with errors.
Not available in Python
1.0.0
ts
13 tests
Apache-2.0