TextArea
A textarea format field is the equivalent of the <textarea> tag, a multi-line box into which the visitor can type text. This text would usually be a character string. textarea also features an optional character counter, which providesfeedback about how much more input is allowed. See below for an example. If the TerraField attribute Prompt is specified, the value will appear in the empty field and disappear as soon as the field received focus.
The following special attributes are available for textarea:
-
Counter
Optional. Boolean, defaults totrue. Display the character counter? (Requires a maximum length to be specified using themaxlengthattribute.) -
CounterCaption
Optional. An HTML caption that appears next to the character counter.
The form below shows examples of a plain field, a field with a default value, a field with regular attributes specified, a field with a prompt message, and a field with a character counter. Note that many other TerraField attributes can be specified, such as minlength, pattern, and datatype.
Other non-TerraField attributes will be passed through to the underlying textarea tag (<textarea>). For example:
onchange="alert(this.value.length + ' character(s)')"cols="30"rows="6"wrap="off"
