Name
Many real names do not fit a first name and a last name, and forms reject or mangle them.
The answer
Accept names as people write them, in any script, and do not require exactly two parts. As strong as the weakest rule behind it: weak.
-
Accept hyphens, apostrophes, spaces and letters from any language, and keep the capitals people typed.
W3C internationalization guidance, two U.S. government patterns, New Zealand government guidance and a Unicode proposal agree; the U.S. pages draw on the W3C article, so they are not fully independent. No study. Rated 3.
- Applies when
- Always.
- Based on
- Convention
- Principle
- Work for everyone
- Common mistake
- Rejecting a name for containing an apostrophe, hyphen, space or non-Latin letter (rule 2).
- User researchUser research: Personal names around the world (W3C Internationalization article)W3C Internationalization Activity
- LawLaw: Personal Name Validation Characters (Unicode document L2/09-232R)Mark Davis, 2009
- GuidanceGuidance: Patterns - Create a user profile - Name (USWDS)GSA Technology Transformation Services, 2022
- Guidance: Personal information section (UI Modernization, Customer Experience)U.S. Department of Labor
- Guidance: Good Practice Guidance for the Recording and Use of Personal Names (v2b)Department of Internal Affairs, 2014
-
Don’t require a family name, or assume a name has two parts.
Guidance that largely traces to one W3C article. Rated 2.
- Applies when
- Always.
- Based on
- Convention
- Principle
- Work for everyone
- Common mistake
- Requiring a last name (rule 3).
- User researchUser research: Personal names around the world (W3C Internationalization article)W3C Internationalization Activity
- StandardStandard: Data Reference Standard on Person(s) - Name ArchitectureGovernment of Canada, 2024
- GuidanceGuidance: Patterns - Create a user profile - Name (USWDS)GSA Technology Transformation Services, 2022
The other rules
-
Mark name fields with the standard name autocomplete tokens.
WCAG 2.2 level AA (1.3.5). Reopened and checked in the pilot.
- Applies when
- The person is entering their own details.
- Based on
- Standard or law
- Depends on
- Whose details they enter
- Principle
- Work for everyone
- GuidanceGuidance: wcag22-1.3.5
- Guidance: Names pattern (autocomplete guidance)GOV.UK Design System
-
Ask for the full name in one field, unless you need the parts separately.
W3C and USWDS advise it, and Baymard saw testers type their full name into a first-name field, without giving numbers. Canadian and New Zealand standards split names for storage and matching. Rated 2.
- Applies when
- The parts of the name are not needed separately.
- Based on
- Practitioner research
- Principle
- Leave out what is not needed
- User researchUser research: Personal names around the world (W3C Internationalization article)W3C Internationalization Activity
- User research: Mobile Form Usability - Avoid Splitting Single Input EntitiesBaymard Institute, 2013
- StandardStandard: Data Reference Standard on Person(s) - Name ArchitectureGovernment of Canada, 2024
- GuidanceGuidance: Patterns - Create a user profile - Name (USWDS)GSA Technology Transformation Services, 2022
- Guidance: Good Practice Guidance for the Recording and Use of Personal Names (v2b)Department of Internal Affairs, 2014
-
If a name looks unusual, ask people to confirm it. Don’t block it.
Guidance only. Rated 2.
- Applies when
- Always.
- Based on
- Convention
- Principle
- Keep people in control
- User researchUser research: Personal names around the world (W3C Internationalization article)W3C Internationalization Activity
- LawLaw: Personal Name Validation Characters (Unicode document L2/09-232R)Mark Davis, 2009
- GuidanceGuidance: Patterns - Create a user profile - Name (USWDS)GSA Technology Transformation Services, 2022
-
Don’t limit name length more than your system truly requires.
Two U.S. sources give 128 characters with no stated basis; W3C says not to cap storage. Rated 1.
- Applies when
- Always.
- Based on
- Convention
- Principle
- Prevent errors
- User researchUser research: Personal names around the world (W3C Internationalization article)W3C Internationalization Activity
- GuidanceGuidance: Patterns - Create a user profile - Name (USWDS)GSA Technology Transformation Services, 2022
- Guidance: Personal information section (UI Modernization, Customer Experience)U.S. Department of Labor
Accessibility
Open questions
- OpenNo peer-reviewed study, review or published experiment on name fields was found. One full name field against split fields has only vendor blog tests, not recorded.
- OpenMaximum length (rule 6).
- OpenA provincial naming standard could not be opened.
Sources
- User researchUser research: Personal names around the world (W3C Internationalization article)W3C Internationalization Activity
- User research: Mobile Form Usability - Avoid Splitting Single Input EntitiesBaymard Institute, 2013
- StandardStandard: Data Reference Standard on Person(s) - Name ArchitectureGovernment of Canada, 2024
- LawLaw: Personal Name Validation Characters (Unicode document L2/09-232R)Mark Davis, 2009
- GuidanceGuidance: wcag22-1.3.5
- Guidance: Names pattern (autocomplete guidance)GOV.UK Design System
- Guidance: Patterns - Create a user profile - Name (USWDS)GSA Technology Transformation Services, 2022
- Guidance: Personal information section (UI Modernization, Customer Experience)U.S. Department of Labor
- Guidance: Good Practice Guidance for the Recording and Use of Personal Names (v2b)Department of Internal Affairs, 2014
Related
- Autofill and identifying input purposeMark each field with what it is for, and never block autofill, pasting or password managers.Answer: settled.
- Asking for personal data and saying whyAsk only for what the service will use, and say why next to anything people may not expect.Answer: weak.
- When to validate a form fieldCheck on submit, and do not show an error until people have finished the field.Answer: moderate.