Skip to main content

Validating sort code and bank account

Add regex formulas for sort code and bank account to enable validation for these 2 fields.

J
Written by Joshua Shooter
Updated over a month ago

The format validator ensures the users input their bank details in a specific format.
​
Similar to the National Insurance / Social Security validation in PeopleHR, you can also validate bank account details. This prevents the user from inputting the bank details in a wrong format.
​
To set up the validation:

  1. Click Access Button image then click HR Admin.

  2. Click Settings, then click on Company.

  3. In the Bank A/c Number Validation and Sort Code Validation, put the regex codes that apply to the relevant jurisdiction.

For UK, the regex codes are:
​
Sort Code without hyphen: ^[0-9]{2}[0-9]{2}[0-9]{2}$

  • Example: 123456

Sort Code with hyphen: ^(\d){2}-(\d){2}-(\d){2}$

  • Example: 12-34-56

Account Number: ^[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{2}$

Did this answer your question?