User Guide

412 Chapter 2: ColdFusion Tags
cftextarea
Description
Puts a multiline text entry box in a cfform tag and controls its display characteristics.
Category
Forms tags
Syntax
<cftextarea
name = "name"
label = "text"
required = "yes" or "no"
style = "style specification"
validate = "data type"
validateAt= one or more of "onBlur", "onServer", "onSubmit"
message = "text"
range = "min_value, max_value"
maxlength = "number"
pattern = "regexp"
onValidate = "script name"
onError = "script name"
disabled = "true" "false" or no attribute value
value = "text"
onKeyUp = "JavaScript or ActionScript"
onKeyDown = "JavaScript or ActionScript"
onMouseUp = "JavaScript or ActionScript"
onMouseDown = "JavaScript or ActionScript"
onChange = "JavaScript or ActionScript"
onClick = "JavaScript or ActionScript"
visible = "Yes" or "No"
enabled = "Yes" or "No"
tooltip = "Tip text"
height = "number of pixels" Flash only
width = "number of pixels" Flash only
>
text
</cftextarea>
See also
cfapplet
, cfcalendar, cfform, cfformgroup, cfformitem, cfgrid, cfinput, cfselect,
cfslider, cftree; Chapter 26, “Introduction to Retrieving and Formatting Data,” in
ColdFusion MX Developer’s Guide
History
ColdFusion MX 7: Added this tag.
Attributes
The following table lists attributes that ColdFusion uses directly. In HTML format, the tag also
supports all HTML
textarea tag attributes that are not on this list, and passes them directly to
the browser.