Field Types
FormMorf supports 20+ field types out of the box. All fields are fully customizable with validation, styling, and conditional logic.
Text Input
Text
textSingle-line text input
Textarea
textareaMulti-line text input
emailEmail input with validation
Phone
phonePhone number input
URL
urlWebsite URL input
Password
passwordPassword input (masked)
Numeric
Number
numberNumeric input with min/max
Range Slider
rangeVisual slider for numbers
Rating
ratingStar rating component
Choice
Select Dropdown
selectDropdown selection
Radio Buttons
radioSingle choice from options
Checkbox
checkboxSingle or multiple choices
Switch Toggle
switchOn/off toggle
Date & Time
Date Picker
dateSelect a date
Time Picker
timeSelect a time
DateTime Picker
datetimeSelect date and time
Date Range
daterangeSelect start and end dates
Media
File Upload
fileUpload any file type
Image Upload
imageUpload and preview images
Rich Input
Rich Text Editor
richtextWYSIWYG text editor
Color Picker
colorVisual color selection
Layout
Heading
headerStatic heading text (H1-H6)
Paragraph
paragraphStatic paragraph text
Divider
dividerVisual separator line
Section
sectionCollapsible field group
Common Properties
All field types support these common properties:
| Property | Type | Description |
|---|---|---|
| id | string | Unique identifier for the field |
| type | FieldType | The type of field (text, email, etc.) |
| label | string | Field label displayed to users |
| name | string | Field name for form submission |
| placeholder | string | Placeholder text |
| helpText | string | Help text shown below the field |
| required | boolean | Whether the field is required |
| disabled | boolean | Whether the field is disabled |
| defaultValue | any | Default value for the field |
| validation | FieldValidation | Validation rules |
| style | FieldStyle | Custom styling options |
| conditions | FieldConditions | Conditional visibility rules |
Type-Specific Properties
Text Fields (text, email, textarea, etc.)
- •
maxLength- Maximum character length - •
pattern- Regex pattern for validation - •
rows- Number of rows (textarea only)
Number Fields
- •
min- Minimum value - •
max- Maximum value - •
step- Step increment
Select & Radio Fields
- •
options- Array of {label, value} objects - •
multiple- Allow multiple selections
File Upload Fields
- •
accept- Accepted file types (e.g., "image/*") - •
multiple- Allow multiple files - •
maxSize- Max file size in MB - •
maxFiles- Max number of files
Rating Field
- •
maxRating- Maximum rating value (default: 5) - •
allowHalf- Allow half-star ratings
Date/Time Fields
- •
minDate- Minimum selectable date - •
maxDate- Maximum selectable date - •
format- Time format (12 or 24 hour)
💡 Tips
- • All fields support custom validation rules
- • Use conditional logic to show/hide fields dynamically
- • Field width can be set to 25%, 50%, 75%, or 100%
- • Static fields (header, paragraph) don't collect data