Skip to main content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Patterns

Ask users for…

Names

Use: Deployed
Follow this pattern whenever you need to ask for a person's name for an application.

Usage

When to use this pattern

  • When you need to collect a person’s name. For example, for contact information or to complete an application.

Note: These fields are not on every form. Work with your stakeholders to determine which fields are necessary for your application.

Examples

Shows the form fields used to obtain first, middle, and last name.
Example of asking for first, middle, and last names.

View an example

How to design and build

How this pattern works

The names pattern implements the following:

  • First name and last name are required fields. Optional fields include:
    • Middle name
    • Suffix
    • Mother’s maiden name
  • Make sure name fields work for most veterans. Fields must be long enough to accommodate the names of your users. Do not restrict the types of characters users can enter in any of these fields. Names can include characters outside the standard Roman alphabet.
  • Pair with date of birth. Collection of full name is paired with date of birth. The two patterns typically appear on the same step/page.

Components used in this pattern

Page templates available for this pattern

Use the VADS templates (Patterns & Forms) for Names in Figma.

Code usage

fullNamePattern is a web-component pattern available in the Forms library.

Content considerations

Labels, error messages, and hint text

First or given name
Hint text: None
Error type: No entry
Error message: Enter a first or given name
Error type 2: Incorrect entry
Error message 2: You entered a character we can’t accept. Try removing "[specific characters entered]"
Middle name
Hint text: None
Error type: Invalid entry
Error message: You entered a character we can’t accept. Try removing "[specific characters entered]"
Last or family name
Hint text: None
Error type: No entry
Error message: Enter a last or family name
Error type 2: Incorrect entry
Error message 2: You entered a character we can’t accept. Try removing "[specific characters entered]"
Suffix
Hint text: None
Edit this page in GitHub (Permissions required)
Last updated: Apr 17, 2024