Skip to main content

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

This template demonstrates functional form examples with validation, multiple input types, and interactive submission handling. Each form is fillable and shows a success message on submit.


Contact form

A standard contact form for government agencies. Collects name, email, subject, and message with proper validation states.

Optional. Format: (555) 555-5555
Provide as much detail as possible (minimum 20 characters)

Contact information

General Services Administration

1800 F Street NW

Washington, DC 20405

Phone: 1-800-555-0199

Email: help@example.gov

Hours: Mon-Fri, 8am-6pm ET


Registration form

A multi-section registration form with personal information, account details, and preferences.

Personal information

Fields marked with * are required.

Account details

3-20 characters, letters and numbers only

Min 12 characters, 1 uppercase, 1 lowercase, 1 number

Preferences


Survey / feedback form

A satisfaction survey with rating scales, checkboxes, and open-ended questions.

Customer satisfaction survey

Help us improve our services by sharing your experience.

If you'd like us to follow up, provide your email


Search form

A site-wide search form with advanced filtering options.

Basic search

Advanced search with filters

Search results example

Use the search form above to find components, patterns, and guides.


Form validation states

Demonstration of USWDS validation states for form fields.

Error state

Please enter a valid email address.

Success state

Valid email address entered.

Disabled state

Required indicator

This field is required

agency.gov

An official website of the Agency

Looking for U.S. government information and services?
Visit USA.gov