Long Text Field
The Long Text field provides a multi-line text area for longer text responses. This field is perfect for collecting detailed information like comments, descriptions, or feedback.
Configuration
Basic Settings
- Field Label: The label displayed above the textarea
- 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
- Rows: Number of visible text rows (height of the textarea)
Validation Options
Configure validation rules for long text fields:
- Minimum Length: Set the minimum number of characters required
- Maximum Length: Set the maximum number of characters allowed
- Word Count: Limit or require a specific word count
Example Usage
{
type: "long-text",
name: "description",
label: "Product Description",
placeholder: "Enter a detailed description of your product",
required: true,
rows: 6,
validation: {
minLength: 50,
maxLength: 500
}
}
Best Practices
- Set an appropriate number of rows for the expected content length
- Provide clear character or word count limits
- Use descriptive labels and placeholder text
- Consider showing a character counter for better user experience
- Set reasonable maximum lengths to prevent excessive data storage