Textarea field
What it does
A Textarea field is a large box where the visitor types an answer of several lines. You find it in the builder's left panel, in the Text Input group. You add it by dragging it onto the form, as described in Adding fields and sections.
The visitor sees your label above the box and can type several lines. You can limit the length with Maximum Length. To see the answer, go to Content → WebForms → Inbox and open the submission.
When to use
Choose Textarea for an answer that may run to more than one line: a message, a question, a description of a problem or special delivery instructions. For a short answer of one line, use Text.
Settings
Go to Content → WebForms → Manage Forms, click the form's name, then click Form Builder. Click the field on the form. Its settings show in the right panel, on the tabs General, Validation and Appearance. If you don't know these parts of the screen yet, see the Builder tour. You'll change these settings most often:
- Label (General tab) is the name visitors see above the box.
- Required makes the visitor fill in the box before the form can be sent. When you turn it on, Required Error Message appears below Required in the right panel for your own wording.
- Rows (Appearance tab) sets the height of the empty box, counted in lines of text.
- Placeholder is a hint shown inside the empty box. It disappears when the visitor starts typing.
- Help Text is a line of guidance for the visitor, for example "Include your order number if you have one."
- Pattern (Validation tab) checks the answer against a regular expression, a formula that describes allowed text.
- Maximum Length (Validation tab) limits the number of characters. With a limit set, the box shows a counter such as "0 / 40" while the visitor types.
When Required is off, the Validation tab also shows Required Unless This Field Is Filled. Pick another field there, and the visitor must fill in at least one of the two. If both are empty, the error shows under this Textarea field. The table below lists every other setting.
Each change saves into the form's draft at once. Visitors see it after you click Publish Changes in the builder's top bar. To check the form first, click Preview in the same bar.
All settings of this field
| Setting | Where in the panel | Values | Translatable |
|---|---|---|---|
| Enable Field | General → Basic | On or off | No |
| Label (required) | General → Basic | Text | Yes |
| Field Code | General → Basic | Text | No |
| Required | General → Basic | On or off | No |
| Required Error Message | General → Basic | Text | Yes |
| Help Text | General → Basic | Formatted text | Yes |
| Tooltip | General → Basic | Formatted text | Yes |
| Placeholder | General → Field Settings | Text | Yes |
| Default Value | General → Field Settings | Text | Yes |
| Pre-fill with Customer Data | General → Field Settings | Full name, Customer / First name, Customer / Last name, Email, Billing Address / First name, Billing Address / Last name, Company, City, Street, Country 2 symbol code, Region, Postcode, Telephone, Fax | No |
| Hide in Submissions | General → Submission Display | On or off | No |
| Allow in Staff Email Subject | General → Submission Display | On or off | No |
| Submission Label | General → Submission Display | Text | Yes |
| Personal Data | General → Privacy | By field type — Personal data, Not personal, Personal data | No |
| Input Mask | General → Advanced | Text | No |
| Transform Text After Save | General → Advanced | No, Uppercase, Lowercase | No |
| Browser Autocomplete | General → Advanced | Text | No |
| Unique Value | Validation → Unique | On or off | No |
| Error Message | Validation → Unique | Text | Yes |
| Minimum Length | Validation → Length | Number | No |
| Error Message | Validation → Length | Text | Yes |
| Maximum Length | Validation → Length | Number | No |
| Error Message | Validation → Length | Text | Yes |
| Pattern | Validation → Pattern | Text | No |
| Error Message | Validation → Pattern | Text | Yes |
| Desktop | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Tablet | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Mobile | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Show Label | Appearance → Style | On or off | No |
| Help Text Position | Appearance → Style | Below input, Above input | No |
| Rows | Appearance → Style | Number | No |
| Container Classes | Appearance → CSS | Text | No |
| Input Classes | Appearance → CSS | Text | No |
| Custom Attributes | Appearance → Advanced | Text | No |
| Inline Style | Appearance → Advanced | Text | No |
Validation
The field doesn't check the answer unless you switch on a rule:
| Rule | What the visitor sees when the check fails |
|---|---|
| Required | "This is a required field." under the box, or your Required Error Message. |
| Minimum Length, for example 6 | "Please enter more or equal than 6 symbols." under the box. |
| Maximum Length, for example 40 | "Please enter less or equal than 40 symbols." under the box. The counter shows how far over the limit the answer is, for example "51 / 40". |
| Unique Value | After Submit, a window titled Error that starts with "Duplicate value has been found:". |
| Pattern | The Error Message you wrote for the pattern. |
Each rule on the Validation tab has its own Error Message box for your own wording. For Required, use Required Error Message on the General tab.
Logic
- Show or hide this field: yes. A rule that starts from a field with options, such as a Select, can show or hide a Textarea field. See Show or hide fields and sections.
- Start a rule: no. Only fields with options can start a rule, so a Textarea field has no Logic tab.
- Email conditions: yes. A notification can go out only when the answer matches a condition. The operators are Is, Is Not, Contains, Starts With and Ends With.
Limits
- The box takes plain text. The visitor can't add bold, links or lists.
Troubleshooting
- The box is too small or too tall. Change Rows and publish the form.
- A visitor can't send a long message. Maximum Length is set. Raise it or clear it on the Validation tab.
- Your change doesn't show on the storefront. Changes stay in the draft until you click Publish Changes. See Drafts, publishing and versions.
What's next
- Text field: the one-line box for short answers.
- Email field: collect an address you can reply to.
- Validation rules: length and pattern checks in detail.