Usage
This tag requires an end tag.
Some custom control tags that you can use within this tag require the client to download a Java
applet; they might execute slightly more slowly than using an HTML form element to get the
same information. In addition to regular HTML form elements, you can use the following
custom control tags within the
•
Creates and validates an input element (radio button, text box, check box)
cfinput
•
Creates a drop-down list box
cfselect
•
Creates a slider control (Java support required)
cfslider
•
cftextinput
•
Creates a tree control (Java support required)
cftree
•
Creates a grid control to display tabular data (Java support required)
cfgrid
•
Embeds a registered Java applet (Java support required)
cfapplet
All of these control tags require that the browser is JavaScript-enabled.
If you use this tag after the
The
attribute is automatically set to
method
If you specify a value in quotation marks, you must escape them by doubling them; for example:
passThrough = "readonly = ""Yes"" ".
Any form field name, from the
suffixes invokes server-side form validation:
•
_integer
Verifies that the user entered a number.
•
_float
Verifies that the user entered a number.
•
_range
Verifies that a numeric value entered is within specified boundaries.
•
_date
Verifies that the user entered a date; converts to ODBC date format.
•
_time
Verifies that the user correctly entered a time; converts to ODBC time format.
•
_eurodate
Verifies that the user entered a date in a standard European date format; converts
to ODBC date format.
Do not use these suffixes for your field names.
For more information, see
ColdFusion MX Applications.
Incorporating HTML form tags
The
tag lets you incorporate these standard HTML elements:
cfform
•
Standard form tag attributes and values. The attributes and values are included in the
that
outputs in the page. For example, you can use
cfform
with
. Other pass-through attributes include CLASS, ENCTYPE, ID, ONLOAD,
cfform
ONRESET, and STYLE.
134
Chapter 2: ColdFusion Tags
tag:
cfform
Creates a text input box (Java support required)
tag on a page, an error is thrown.
cfflush
tag or an HTML form, that ends in one of the following
cfform
Chapter 26, "Retrieving and Formatting Data,"
; if you specify a value, it is ignored.
post
form
in Developing
form
tag attributes like
target
tag