Single Line
Single Line fields store short text values like names, emails, phone numbers, and URLs.
View all settings
| Setting | Description |
|---|---|
| Field Name | Text input, required. Unique identifier for the field. |
| Input Type | Dropdown, required. Choose Text, Email, URL, Tel, Password, Char, or File. |
| Default Value | Text input. Pre-filled value for new records. Not available for File. |
| Display Label | Text input. Human-readable label shown in forms. |
| Sort Order | Number input, defaults to 0. Position in field lists. |
| Icon | Icon picker. Visual identifier. |
| Status | Toggle, defaults to true. Enable or disable the field. |
| Required | Checkbox. Make the field mandatory. |
| Description | Text area. Documents the field's purpose. |
| Form Visibility | Dropdown. Show in Add, Edit, or Both forms. |
| DB Field Name | Text input. Custom database column name. |
| Faker Type | Dropdown. Generate test data (names, emails, etc.). |
| Primary Key | Checkbox. Mark as unique record identifier. |
| Unique | Checkbox. Prevent duplicate values. |
| Use as Index | Checkbox. Create database index for performance. |
| Populate from Logged-In User | Checkbox. Auto-fill from user session. |
| Min Length | Number input. Minimum characters required. |
| Max Length | Number input. Maximum characters allowed. |
| Regex | Text input. Custom validation pattern. |
Input Types
- Text — General short text for names, titles, labels
- Email — Email addresses with built-in format validation
- URL — Web addresses with URL validation
- Tel — Phone numbers (no format validation, just semantic)
- Password — Masked input for sensitive data, stored securely
- Char — Single character input
- File — File uploads with size and type constraints
When to Use
Choose Single Line when:
- Content fits on one line (under 255 characters typically)
- You need input validation (email, URL, phone)
- Uploading files or images (File input type)
Choose Multi Line instead when:
- Content may span multiple lines
- You need rich text formatting
Settings
See Common Settings for shared options. Single Line supports Primary Key and Unique.
Validation (Advanced Settings)
| Setting | Description |
|---|---|
| Min Length | Minimum number of characters required. |
| Max Length | Maximum number of characters allowed. |
| Regex | Custom validation pattern (e.g., phone number format). |
File Input Type (Advanced Settings)
When Input Type is set to File, validation settings (Min/Max Length, Regex) and Default Value are not available. File-specific options appear instead:
| Setting | Description |
|---|---|
| Allowed Extensions | Restrict file types (e.g., jpg, png, pdf). |
| Max File Size | Maximum file size in bytes. |
| Image Width/Height | Constraints for image dimensions. |
| Aspect Ratio | Required width-to-height ratio for images. |
Use Cases
- Names, titles, and labels (Text)
- Email addresses with validation (Email)
- Website links and URLs (URL)
- Phone numbers (Tel)
- Secure credentials (Password)
- Document and image uploads (File)
Related
- Common Settings — Shared settings reference
- Multi Line — For longer text content