“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.
GOV.UK Design System’s Bank details has the following guidance.
Account number
International bank account details
Sort code
Error message
If the account number is not in the correct format
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.