Skip to main content

Single Line

Single Line fields store short text values like names, emails, phone numbers, and URLs.

Go to StudioCollections → [Collection Name] → Fields tab → Add Field, then select Single Line. To edit an existing field, click the edit action next to it.

View all settings

Basic Settings

SettingDescription
Field NameText input, required. Unique identifier for the field.
Input TypeDropdown, required. Choose Text, Email, URL, Tel, Password, Char, or File.
Default ValueText input. Pre-filled value for new records. Not available for File.
Display LabelText input. Human-readable label shown in forms.
IconIcon picker. Visual identifier.
StatusToggle, defaults to true. Enable or disable the field.
RequiredCheckbox. Make the field mandatory.

Advanced Settings

SettingDescription
DescriptionText area. Documents the field's purpose.
Form VisibilityDropdown. Show in Add, Edit, or Both forms.
DB Field NameText input. Custom database column name.
Primary KeyCheckbox. Mark as unique record identifier.
UniqueCheckbox. Prevent duplicate values.
Faker TypeDropdown. Disabled and Deprecated. Configure faker through collection options for each field.
Min LengthNumber input. Minimum characters required.
Max LengthNumber input. Maximum characters allowed.
RegexText 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)

SettingDescription
Min LengthMinimum number of characters required.
Max LengthMaximum number of characters allowed.
RegexCustom validation pattern (for example, phone number format).

File Input Type (Basic Settings)

When Input Type is set to File, file-specific options appear in the Basic Settings tab. Validation settings (Min/Max Length, Regex) and Default Value are not available.

View all file input settings
SettingDescription
Quick PresetsApply common configurations for Images, Documents, Spreadsheets, or Media.
Allowed ExtensionsRestrict uploads to specific file extensions (for example, jpg, png, pdf).
Allowed MIME TypesRestrict uploads by MIME type (for example, application/pdf). Hidden if Is Image is active.
Max File Size (MB)Maximum allowed file size in Megabytes.
Add Auto PrefixAutomatically prefix filenames for uniqueness or organization.
Is ImageEnable image-specific validation and constraints.

Image Constraints (Is Image active)

When Is Image is enabled, additional constraints for dimension and ratio appear:

SettingDescription
Min Width (px)Minimum horizontal dimension in pixels.
Max Width (px)Maximum horizontal dimension in pixels.
Min Height (px)Minimum vertical dimension in pixels.
Max Height (px)Maximum vertical dimension in pixels.
Is SquareEnforces a strict 1:1 aspect ratio for all image uploads.

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)