📖 US Forms System Documentation
The US Forms System lets you build web-based forms using the JSON Schema standard for form data and React for the form UI. The form data and UI are represented by schema
and uiSchema
objects, respectively, which are included in the form configuration file.
Use this example form.js
file to build a basic form.
Your form is generated from a form.js
file, along with a few other key configuration files.
These form features are available in the US Forms System library. We've provided information about how to implement them in your form.
Widgets are React components that return specific HTML form elements. Set these widgets in a config file while building your form.
Definitions are pieces of the form config that can be dropped in to represent specific types of questions. Most often used in uiSchema
, definitions include features such as label text, validation functions, error messages, and rules for which widget to render.
Some forms require custom validation, styles, or conditional information based on user input. Use these patterns to address those needs.