Tuwex Inc logo
Type something to search...

Short Text Field

The Short Text field allows users to input brief text responses. This field is ideal for collecting information like names, email addresses, or any other short text data.

Configuration

Basic Settings

  • Field Label: The label displayed above the input field
  • Placeholder: Placeholder text shown when the field is empty
  • Required: Whether the field must be filled before submission
  • Default Value: Pre-filled value for the field

Validation Options

You can configure various validation rules for short text fields:

  • Minimum Length: Set the minimum number of characters required
  • Maximum Length: Set the maximum number of characters allowed
  • Pattern Matching: Use regex patterns for custom validation
  • Email Validation: Enable email format validation

Example Usage

{
  type: "short-text",
  name: "firstName",
  label: "First Name",
  placeholder: "Enter your first name",
  required: true,
  validation: {
    minLength: 2,
    maxLength: 50
  }
}

Best Practices

  1. Keep labels clear and concise
  2. Use placeholder text to provide examples
  3. Set appropriate length limits based on expected input
  4. Consider using validation patterns for specific formats (phone numbers, postal codes, etc.)