Field Types
NetPad supports 30+ field types for collecting various types of data. This guide covers all available field types and their configuration options.
Each field type below includes an interactive preview. Try filling in the fields, triggering validation, and click "Config" to see the underlying configuration.
Text Fieldsโ
Single-Line Textโ
Basic text input for short responses.
Try entering a single character to see validation
Configuration:
- Min/max length
- Pattern validation (regex)
- Placeholder text
- Default value
Use Cases: Names, emails, short answers
Multi-Line Text (Textarea)โ
For longer text responses.
Multi-line text field with 4 rows
Configuration:
- Min/max length
- Rows (height)
- Character counter
- Rich text editor (optional)
Use Cases: Comments, descriptions, messages
Number Fieldsโ
Integerโ
Whole numbers only.
Number field with min 1, max 100, step 1
Configuration:
- Min/max value
- Default value
- Step increment
Use Cases: Quantities, counts, ratings
Decimalโ
Numbers with decimal places.
Decimal field with step 0.01 for precise values
Configuration:
- Min/max value
- Decimal places
- Default value
- Step increment
Use Cases: Prices, measurements, percentages
Currencyโ
Formatted currency input.
Configuration:
- Currency symbol
- Min/max value
- Decimal places
- Locale formatting
Use Cases: Prices, costs, budgets
Percentageโ
Percentage values (0-100).
Configuration:
- Min/max percentage
- Default value
- Display format
Use Cases: Completion rates, discounts, allocations
Date & Time Fieldsโ
Date Pickerโ
Select a date.
Date picker using native browser input
Configuration:
- Date format
- Min/max date
- Default date
- Calendar style
Use Cases: Birth dates, event dates, deadlines
Time Pickerโ
Select a time.
Configuration:
- Time format (12/24 hour)
- Min/max time
- Default time
- Time intervals
Use Cases: Meeting times, schedules
DateTime Pickerโ
Select both date and time.
Configuration:
- Date and time formats
- Min/max datetime
- Default datetime
- Timezone handling
Use Cases: Event start times, deadlines with time
Choice Fieldsโ
Radio Buttonsโ
Single choice from options.
Radio buttons for single selection
Configuration:
- Options list
- Default selection
- Layout (vertical/horizontal)
- "Other" option
Use Cases: Single-choice questions, preferences
Dropdown (Select)โ
Single choice from dropdown menu.
Dropdown for selecting from many options
Configuration:
- Options list
- Default selection
- Searchable
- "Other" option
Use Cases: Categories, selections from many options
Checkboxesโ
Multiple selections allowed.
Checkboxes for multiple selections
Configuration:
- Options list
- Default selections
- Min/max selections
- Layout
Use Cases: Multiple selections, interests, features
Multi-Select Dropdownโ
Multiple selections from dropdown.
Configuration:
- Options list
- Default selections
- Searchable
- Min/max selections
Use Cases: Tags, categories, multiple choices
Rating Scaleโ
Star or numeric rating.
Configuration:
- Scale (1-5, 1-10, etc.)
- Icon style (stars, hearts, etc.)
- Labels for scale points
- Default rating
Use Cases: Product reviews, satisfaction ratings
NPS (Net Promoter Score)โ
Standard NPS question (0-10 scale).
Configuration:
- Question text
- Labels for scale ends
- Default value
Use Cases: Customer satisfaction, loyalty measurement
Matrixโ
Grid of questions with shared options.
Configuration:
- Rows (questions)
- Columns (options)
- Required per row
- Layout
Use Cases: Surveys, evaluations, comparisons
File Fieldsโ
Single File Uploadโ
Upload one file.
Configuration:
- Allowed file types
- Max file size
- Storage location
- Preview enabled
Use Cases: Documents, images, resumes
Multiple File Uploadโ
Upload multiple files.
Configuration:
- Allowed file types
- Max file size per file
- Max number of files
- Total size limit
Use Cases: Portfolios, document sets, galleries
Special Fieldsโ
Signatureโ
Digital signature capture.
Configuration:
- Required
- Background color
- Pen color
- Clear button
Use Cases: Agreements, approvals, consent
Lookup Fieldโ
Reference data from another collection.
Configuration:
- Source collection
- Display field
- Search field
- Filter query
- Multiple selection
Use Cases: Related records, foreign keys, references
Computed Fieldโ
Formula-based calculated field.
Configuration:
- Formula expression
- Field references
- Result type
- Decimal places
Use Cases: Totals, calculations, derived values
Example Formulas:
field1 + field2- Sumfield1 * field2- Multiplyfield1 / field2- Dividefield1 - field2- SubtractCONCAT(field1, " ", field2)- Concatenate
Complex Fieldsโ
Nested Objectโ
Group related fields together.
Configuration:
- Child fields
- Collapsible
- Repeatable (array of objects)
Use Cases: Addresses, contact info, complex structures
Example Structure:
{
"address": {
"street": "123 Main St",
"city": "New York",
"zip": "10001"
}
}
Array Fieldโ
Dynamic list of values.
Configuration:
- Item field type
- Min/max items
- Add/remove buttons
- Default items
Use Cases: Lists, tags, multiple entries
Example Structure:
{
"tags": ["tag1", "tag2", "tag3"]
}
Layout Fieldsโ
Section Dividerโ
Visual separator and grouping.
Configuration:
- Title
- Description
- Collapsible
- Style
Use Cases: Organizing long forms, grouping related fields
Page Breakโ
Separate form into multiple pages.
Configuration:
- Page title
- Page description
- Progress indicator
- Navigation buttons
Use Cases: Multi-step forms, wizards
HTML Contentโ
Custom HTML content.
Configuration:
- HTML content
- Styling options
Use Cases: Instructions, images, custom content
Field Propertiesโ
All fields share these common properties:
Basic Propertiesโ
- Field ID: Unique identifier (auto-generated, can customize)
- Label: Display name
- Placeholder: Hint text
- Help Text: Additional guidance
- Required: Must be filled
- Default Value: Pre-filled value
Validation Propertiesโ
- Min/Max: Minimum and maximum constraints
- Pattern: Regex pattern validation
- Custom Validation: JavaScript expression
- Error Message: Custom error text
Display Propertiesโ
- Width: Field width (full, half, third, etc.)
- Visibility: Show/hide conditions
- Read-only: Display only, no editing
- Hidden: Hidden from users (for computed fields)
Choosing the Right Field Typeโ
Text Input: Short, free-form text Textarea: Longer text responses Number: Numeric values, calculations Date/Time: Temporal data Choice Fields: Limited options, selections File Upload: Documents, images, files Signature: Legal agreements, approvals Lookup: Related data from other collections Computed: Calculated values Nested/Array: Complex data structures
Best Practicesโ
- Match Field Type to Data: Use appropriate types for your data
- Provide Defaults: Pre-fill when possible
- Use Help Text: Guide users on what to enter
- Validate Appropriately: Set min/max, patterns, required fields
- Group Related Fields: Use sections and nested objects
- Keep It Simple: Don't overcomplicate field types
Complete Example: Contact Formโ
Here's a complete example combining multiple field types into a functional contact form:
Complete contact form with validation - try switching viewports to see responsive behavior
Next Stepsโ
- Validation - Set up validation rules
- Conditional Logic - Show/hide fields dynamically
- Building Forms - Learn form building basics