User Guide
cftextarea 413
Note: Attributes that are marked as Flash only are not handled by the skins provided with ColdFusion
MX. They are, however, included in the generated XML.
Attribute Req/Opt;
Format
Default Description
name Required;
All
Name of the
cftextinput control.
label Optional;
Flash and
XML
Label to put beside the control on a form.
style Optional;
All
In HTML or XML format forms, ColdFusion passes the
style attribute to the browser or XML.
In Flash format forms, must be a style specification in
CSS format, with the same syntax and contents as used
in Macromedia Flex for the corresponding Flash element.
required Optional;
All
no • yes: the field must contain text.
• no: the field can be empty.
validate Optional;
All
The type or types of validation to do. Available validation
types and algorithms depend on the format. For details,
see the Usage section of the
cfinput tag reference.
validateAt Optional;
HTML and
XML
onSubmit How to do the validation; one or more of the following:
• onSubmit
• onServer
• onBlur
For Flash format forms, onSubmit and onBlur are
identical; validation is done when the user submits the
form. For multiple values, use a comma-delimited list.
For details, see the Usage section of the
cfinput tag
reference.
message Optional;
All
Message text to display if validation fails.
range Optional;
All
Minimum and maximum allowed numeric values.
ColdFusion uses this attribute only if you specify range in
the
validate attribute.
If you specify a single number or a single number followed
by a comma, it is treated as a minimum, with no maximum.
If you specify a comma followed by a number, the
maximum is set to the specified number, with no
minimum.
maxLength Optional;
All
The maximum length of text that can be entered.
ColdFusion uses this attribute only if you specify
maxlength in the
validate attribute.