Repository navigation
National Insurance numbers #6076
Replies: 8 comments
|
Research indicated that some users were unsure of their National Insurance numbers. They liked the subtle addition of a Details component stating: "If you are unable to locate your National Insurance number, please refer to find your National Insurance number" |
|
To improve the quality of data collected (but only if services have a user need for it...) is there any guidance that could be added to this pattern to help/encourage teams to also use back-end validation for NI numbers at the point they are collected, ie the service does a look up in the background to check an NI number is real, in addition to the existing on-screen validation? Also could this pattern be expanded (where there is a user need for it, and data protection allows it) to show teams why they might want to ask for an additional identifier so their service can do a back-end check to make sure an NI number is real and belongs to that person, ie DOB and NI number, or NI number and name? It might not mean they store that additional data, eg DOB, once the check has been done? |
|
It would be great to have a JavaScript regex for the following: The NI Number must be 9 characters long with no spaces |
|
Someone has posted what seems to be a working regex for National Insurance numbers on stack overflow. Remove the JavaScript specific start and end characters, and
works when tested against real NI numbers at regexr.com |
|
One from Alphagov, via @joelanman This is doing nice things like pre-normalising for casing and common punctuation. |
|
Hi - it's quick and easy for a user to find their National Insurance number by using the HMRC app or by going into their Personal Tax Account. Not all users will want to look for it offline. Could the hint text for this pattern be updated to signpost people to the app, for example? |



Uh oh!
There was an error while loading. Please reload this page.
Use this issue to discuss this pattern in the GOV.UK Design System.
All reactions