The Open Text question type allows you to collect free-form text input from respondents. It’s one of the most versatile question types, supporting various input formats including email, URL, phone numbers, and more.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/formbricks/formbricks/llms.txt
Use this file to discover all available pages before exploring further.
Configuration
Basic Properties
Input Types
TheinputType property determines the type of input validation and keyboard on mobile devices:
- text (default): Standard text input
- email: Validates email format, shows email keyboard
- url: Validates URL format
- number: Accepts only numeric input
- phone: Validates phone number format
Character Limits
Control the length of responses with character limits:- At least one of
minormaxmust be set when enabled - Values must be positive numbers
mincannot be greater thanmax
Validation Rules
Open Text supports advanced validation rules:minLength,maxLength: Text length constraintspattern: Regular expression matchingemail,url,phone: Format validationequals,doesNotEqual: Exact matchingcontains,doesNotContain: Substring matchingminValue,maxValue: Numeric range (when inputType is “number”)isGreaterThan,isLessThan: Numeric comparison
Use Cases
Short Answer
Collect brief responses like names or one-word answers:Email Collection
Validate email addresses with built-in validation:Long-Form Feedback
Collect detailed responses with a text area:Phone Number
Collect and validate phone numbers:Numeric Input
Collect numbers with validation:Best Practices
- Use appropriate input types: Set
inputTypeto improve mobile experience and enable basic validation - Provide clear placeholders: Help users understand the expected format
- Set reasonable character limits: Prevent overly short or long responses
- Use longAnswer for detailed feedback: Enable textarea for responses longer than a sentence
- Consider validation rules: Add custom validation when you need specific formats beyond basic input types
- Make optional when possible: Only require text input when absolutely necessary
Accessibility
- The
headlineis used as the label for screen readers placeholdertext provides additional context- Input type affects mobile keyboard and screen reader announcements
- Required fields are clearly marked for assistive technologies