Documentation Index
Fetch the complete documentation index at: https://mintlify.com/formsmd/formsmd/llms.txt
Use this file to discover all available pages before exploring further.
The
textareaInput is created using the textInput method with the multiline parameter set to true.Overview
The textarea input allows users to enter multiple lines of text, making it ideal for collecting longer responses like feedback, comments, or descriptions.Method Signature
Parameters
The unique identifier for this input field.
Required Parameters
The main question or label displayed to the user.
Must be set to
true to render a textarea element instead of a single-line input.Input-Specific Parameters
Sets the placeholder text displayed when the textarea is empty.
Sets the maximum number of allowed characters.
Sets the default value of the textarea.
Shared Parameters
All standard form field parameters are supported. See textInput for the complete list of shared parameters includingrequired, description, fieldSize, disabled, and more.
Examples
Use Cases
- Feedback Forms
- Application Forms
- Support Tickets
Perfect for collecting detailed user feedback, reviews, or testimonials.
Best Practices
Setting appropriate character limits
Setting appropriate character limits
Use
maxlength to prevent overly long responses and guide users on expected response length:- Short responses (bio, tagline): 150-300 characters
- Medium responses (feedback, comments): 500-1000 characters
- Long responses (essays, detailed descriptions): 2000-5000 characters
Helpful placeholders
Helpful placeholders
Use placeholders to show example responses or guide users on what to include:
Clear descriptions
Clear descriptions
Add descriptions to clarify expectations:
Return Value
Returns a string containing the Forms.md markup for the textarea input field.Related Methods
textInput
Single-line text input
emailInput
Email input with validation