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…

Email address

Use: Deployed
Follow this pattern to ask a user for an email address.

Usage

When to use this pattern

  • When you need to collect an email address. For example, for contact information.

Examples

contact information email address template

How to design and build

How this pattern works

  • If possible, tell users why you want their email address. Users need to know that the VA won’t abuse their email and which email they’d like to provide. An example message is: Please enter your contact information so we can get in touch with you if we have questions about your application.
  • Validate email addresses. You should validate email addresses so you can let users know if they have entered one incorrectly. A validation message for when a user forgets the “@”: Please enter a valid email address. A validation message for when a user doesn’t use the same email in the “Confirm email address” field: This email doesn’t match the one you entered above.

Content considerations

Error message templates for email addresses

When a user doesn’t enter an email address:

Say ‘Please enter an email address’

When a user doesn’t enter an email address in the correct format:

Say ‘Please enter an email address using this format: X@X.com’

When a user doesn’t use the same email in the “Confirm email address” field:

Say ‘This email doesn’t match the one you entered above’.

Edit this page in GitHub (Permissions required)
Last updated: Aug 25, 2022