f:form.textarea¶
This ViewHelper allows you to add a TEXTAREA (text input field) to an HTML form, which allows a website visitor to enter text on multiple lines. For example, this type of field is usually seen in a contact form, where the website visitor can enter the text of his or her message. The value of the text area needs to be set via the “value” attribute, as with all other form ViewHelpers.
Properties¶
All the universal tag attributes
All the universal form field attributes
autofocus¶
- Variable type
- String
- Description
- Specifies that a text area should automatically get focus when the page loads.
- Default value
- Empty string
- Mandatory
- No
rows¶
- Variable type
- Int
- Description
- The number of rows of a text area.
- Default value
- 0
- Mandatory
- No
cols¶
- Variable type
- Int
- Description
- The number of columns of a text area.
- Default value
- 0
- Mandatory
- No
disabled¶
- Variable type
- String
- Description
- Specifies that the input element should be disabled when the page loads.
- Default value
- Empty string
- Mandatory
- No
placeholder¶
- Variable type
- String
- Description
- The placeholder of the textarea.
- Default value
- Empty string
- Mandatory
- No
errorClass¶
- Variable type
- String
- Description
- CSS class to set if there are errors for this view helper.
- Default value
- f3-form-error
- Mandatory
- No