Skip to main content
The Text field is the most versatile field type in Penbox. It captures single-line or multi-line text input, making it ideal for names, addresses, descriptions, notes, IDs, and any other free-form text data. Text fields can be configured with character limits, validation patterns, and placeholder hints. They support both simple input (like a name) and complex multi-line content (like detailed notes or descriptions).

When to Use

Use Text fields for:
  • Names (person, company, product)
  • Addresses (street, city, full address)
  • Descriptions and notes
  • IDs and reference numbers
  • Email addresses (simple text, or use Email element in forms)
  • Phone numbers (simple text, or use Phone element in forms)
  • URLs and website addresses
  • Comments and feedback
  • Any free-form text input
Consider alternatives:
  • Use Number for numeric values (enables calculations)
  • Use Date for dates (enables date-based features)
  • Use Choices for predefined options (ensures consistency)

Configuration Options

Examples

Basic Single-Line Text

Collect a company name:

Multi-Line Text (Notes)

Collect detailed notes or descriptions:

Validated Text (IBAN)

Collect structured text with validation:

Hidden Text Field (System Use)

Store data not shown to users:

Validation

Text fields support several validation mechanisms:

Character Length

Use maxlength to limit input:
  • Prevents overly long entries
  • Ensures data fits in external systems
  • Useful for regulated fields with character limits

Pattern Matching

Use pattern for regex validation:
  • Format validation (IBANs, postal codes, IDs)
  • Character restrictions (alphanumeric only)
  • Structure enforcement
Common patterns:
Pattern validation only applies when users fill the field. It doesn’t validate existing data or data from API imports.

Best Practices

Use descriptive names:
  • “Company Legal Name” is better than “Name”
  • “Incident Description” is better than “Description”
  • Clear names help users and Intelligence understand what’s expected
Add help text:
  • Use the description field to guide users
  • Explain format requirements, especially for validated fields
  • Mention if the field is required for compliance
Choose single vs multi-line appropriately:
  • Single-line for short, structured text (names, IDs, codes)
  • Multi-line for longer content (descriptions, notes, comments)
  • Set appropriate maxlength for multi-line to prevent excessive input
Use validation wisely:
  • Only validate when necessary (IBANs, IDs, codes)
  • Don’t over-validate (strict patterns can frustrate users)
  • Test patterns thoroughly before deploying
Consider visibility:
  • Use “hide when empty” for optional supplementary fields
  • Use “always hide” for system IDs and technical data
  • Keep essential fields always visible

Number

Use for numeric values that need calculations

Choices

Use when input should be from predefined options

Date

Use for date values to enable date-based features

Data Schema Overview

Back to Data Schema overview