Text Field Type
Text Field Type
Text fields capture short text strings up to 255 characters. Use for names, codes, references, and other brief information.
Configuration Options
| Property | Description |
|---|---|
| Label | Name shown to users (e.g., "Loan Number") |
| Placeholder | Helper text in empty field (e.g., "Enter loan number") |
| Default Value | Pre-filled text for new orders |
| Required | Whether field must be filled |
| Help Text | Additional guidance below the field |
Character Limits
- Maximum: 255 characters
- Minimum: 0 (empty if not required)
- Counter shows remaining characters as you type
Validation
Text fields validate:
- Required fields: Cannot be empty
- Length: Cannot exceed 255 characters
- Format: No format validation (any characters allowed)
For email or phone validation, use those specific field types instead.
Best Practices
Field Labels
- Keep it short: Under 30 characters
- Be specific: "Loan Number" not "Number"
- Use title case: Capitalize Each Word
Placeholder Text
- Provide examples: "e.g., LN-12345"
- Keep it brief: Under 50 characters
- Don't repeat the label: If label is "Loan Number", don't use "Enter loan number"
When to Use Text Fields
| Data Type | Use Text Field? |
|---|---|
| Names | Yes |
| Codes/References | Yes |
| Short descriptions | Yes |
| Phone numbers | No (use Phone type) |
| Email addresses | No (use Email type) |
| Long descriptions | No (use Textarea) |
Common Examples
| Label | Placeholder | Required |
|---|---|---|
| Loan Number | e.g., LN-12345 | Yes |
| Reference Code | e.g., REF-2024-001 | No |
| Lender Name | Bank or lender name | No |
| Department | e.g., Accounting, HR | No |