Skip to main content

Getting started with the Form and JSON Schema Form components

Learn how to build forms using components or JSON Schema to collect user input.

Retool provides two components that enable you to gather user input from within an app: Form and JSON Schema Form.

This section covers only in-app forms. You can also create standalone forms using Retool Forms.

The following tabs outline the differences between the form types.

The Form component functions as a container for input components, providing complete control over a form's layout and design. You create a form by adding input components or generating them automatically using the schema of a Table or a connected PostgreSQL, MySQL, or MS SQL database.

Retool recommends using the Form component instead of the JSON Schema Form component in most cases.

The Form component includes the following features:

  • Drag-and-drop of input components.
  • Full control over layout. Supports all components, with control properties in the editor.
  • Manually make changes and updates. Use the editor to update inputs and properties.
  • Generate forms from an SQL database schema. Automatically adds inputs to the form and creates a query to insert records.