hmrc / accessibility

Apache License 2.0
22 stars 5 forks source link

Entering spaces in bank details #23

Open philsherry opened 4 years ago

philsherry commented 4 years ago

GOV.UK Design System’s Bank details has the following guidance.

Account number

“Must be between 6 and 8 digits long”

International bank account details

“Must be between 8 and 11 characters long”

Sort code

“Let users enter their sort code in whatever format is familiar to them. Allow additional spaces, hyphens and dashes.”

Error message

If the account number is not in the correct format

‘Enter a valid account number like 00733445’.

Any spaces which are added to the account number field will generate an error. This behaviour feels wrong, especially as some users need to break up strings of digits in order to read them properly. We should accept spaces in these fields and amend the hints and errors accordingly.

shabana-ali commented 4 years ago

This issue has been seen in the following services:

ashfaqhussain357 commented 4 months ago

Account number and sort code now allowing for input with spaces and different formats.