Understanding Form Schema
Every form in FastForms follows a structured schema with three main components:While you typically generate forms using AI prompts, understanding the schema helps you know what customizations are possible.
Field Anatomy
Each field in your form has the following structure:Core Properties
Unique identifier for the field. Must be unique within the form. Used as the key in response data.
The field type determines how users interact with it. Must be one of:
text, email, date, number, textarea, select, radio, checkbox, fileThe visible label shown to users above the field. Should be clear and descriptive.
Hint text displayed inside empty fields. Disappears when user starts typing.
Whether the field must be filled before form submission. Required fields show a red asterisk (*) next to the label.
Array of choice values for
select, radio, and checkbox field types.Validation constraints for the field. Available properties vary by field type.
Field Types Reference
FastForms supports 9 field types, each optimized for different data collection needs.Text Input (text)
Single-line text input for short responses.
minLength, maxLength
Email Input (email)
Email address with built-in format validation.
minLength, maxLength
Textarea (textarea)
Multi-line text input for longer responses.
minLength, maxLength
Appearance: Minimum height of 100px, expands as user types
Number Input (number)
Numeric values with optional range constraints.
min, max
Number fields show increment/decrement arrows on desktop and a numeric keyboard on mobile devices.
Date Input (date)
Date picker for selecting dates.
Dropdown Select (select)
Single selection from a dropdown menu.
options array (must have at least 1 option)
Validation options: None (selection itself is the validation)
Radio Buttons (radio)
Single selection with all options visible.
options array (must have at least 1 option)
Validation options: None
Appearance: Vertical stack of radio buttons with labels
Checkboxes (checkbox)
Multiple selections allowed.
options array (must have at least 1 option)
Validation options: None
Data format: Response contains an array of selected values
File Upload (file)
File attachment field.
File handling requires additional backend configuration. Check your deployment settings.
Validation Rules
FastForms supports field-level validation to ensure data quality.Text Validation
Fortext, email, and textarea fields:
Minimum number of characters required.
Maximum number of characters allowed.
- Username between 3-20 characters
- Bio with 50-500 character limit
- Comments with minimum 10 characters
Number Validation
Fornumber fields:
Minimum numeric value allowed.
Maximum numeric value allowed.
- Age verification (min: 18)
- Rating scale (min: 1, max: 5)
- Quantity limits (min: 1, max: 10)
- Year range (min: 2020, max: 2030)
Combining Validation Rules
You can use multiple validation rules together:Selection Field Options
Defining Options
Theoptions array is critical for select, radio, and checkbox fields:
Option Best Practices
Logical ordering
Arrange options in a meaningful order:
- Alphabetical (countries, states)
- Chronological (time ranges)
- Magnitude (Small to Large, Low to High)
- Frequency (Most common first)
Field Organization Strategies
Grouping Related Fields
While FastForms doesn’t support visual field groups, you can use clear labeling:Progressive Complexity
Order fields from simple to complex:- Basic identification: Name, email
- Primary questions: The main purpose of the form
- Details: Specific selections or preferences
- Optional information: Supplementary data
Required vs Optional
Place required fields first to prevent frustration:Schema Validation Rules
FastForms enforces strict validation to ensure form integrity:Automatic Validation Checks
Unique Field IDs
Unique Field IDs
Every field must have a unique Error message: “Field IDs must be unique”
id within the form.Options Required for Selection Fields
Options Required for Selection Fields
Select, radio, and checkbox fields MUST have the Error message: “Select/radio/checkbox fields must have options”
options property with at least one option.Minimum One Field Required
Minimum One Field Required
Forms must have at least one field.
Required Field Properties
Required Field Properties
Every field must have:
id(non-empty string)type(valid field type enum)label(non-empty string)
Customization via AI Prompts
While you don’t manually edit JSON schemas, understanding customization helps you write better AI prompts:Requesting Specific Field Types
Specifying Validation
Defining Options
Tips for Effective Customization
Start Simple
Begin with basic fields and add complexity only when needed:- Create a simple version first
- Test with preview mode
- Identify what’s missing
- Generate a new form with refinements
Match Field Types to Data
Choose field types that match your data format:| Data Type | Recommended Field |
|---|---|
| Person’s name | text |
| Email address | email |
| Phone number | text (not number) |
| Date of event | date |
| Age | number with min validation |
| Rating (1-5) | number with min/max OR radio |
| Long feedback | textarea |
| Single choice | select or radio |
| Multiple choices | checkbox |
| Documents | file |
Placeholder vs Label
Understand the difference:- Label: Persistent description, always visible
- Placeholder: Temporary hint, disappears on input
Never put critical information only in placeholders—users won’t see it after they start typing.
Testing Your Customizations
After generating a form:- ✅ Review all fields in preview mode
- ✅ Check that required fields are marked
- ✅ Verify selection fields have all options
- ✅ Test validation by publishing and submitting test data
- ✅ Check response data format in the responses page
Common Customization Patterns
Contact Form
Contact Form
Event Registration
Event Registration
Survey Form
Survey Form
Remember: FastForms uses AI to generate these schemas automatically. Use these examples to understand what’s possible, then describe your needs in natural language when generating forms.