Soom
SomaDBFieldsField TypesText Based

Text-Based Fields in SomaDB

Learn about text-based field types for handling textual data in SomaDB

Text-Based Fields in SomaDB

Text-based fields are designed to handle various types of textual data, from simple single-line text to rich formatted content. Each type is optimized for specific use cases and provides appropriate validation and formatting options.

Text-Based Field Types

Single Line Text

  • Use Case: Names, titles, short descriptions
  • Features: Basic text input with length limits
  • Validation: Character limits, required fields

Long Text

  • Use Case: Descriptions, notes, comments
  • Features: Multi-line text input with formatting
  • Validation: Length limits, rich text options

Rich Text

  • Use Case: Formatted content, documentation
  • Features: Full rich text editor with formatting
  • Validation: HTML content, embedded media

Email

  • Use Case: Email addresses, contact information
  • Features: Email validation and formatting
  • Validation: Valid email format, uniqueness

Phone Number

  • Use Case: Contact numbers, phone data
  • Features: Phone number formatting and validation
  • Validation: Valid phone format, country codes

URL

  • Use Case: Website links, resource URLs
  • Features: URL validation and link formatting
  • Validation: Valid URL format, protocol checking

Best Practices

  • Choose the appropriate text type for your data
  • Use validation to ensure data quality
  • Consider length limits for performance
  • Use rich text for formatted content

Next Steps

Explore each text-based field type to learn more about their specific features and use cases.

How is this guide?