User Guide
cfform 133
In addition to the listed attributes, you can use the following HTML attributes in the cfform tag.
The tag does not use these attributes, but includes them in the form tag that it generates and
returns to the browser:
• class
• enctype
• id
• onReset
• style
• target
preserveData Optional No When the cfform action attribute posts back to the same
page as the form, this determines whether to override the
control values with the submitted values.
• false: values specified in the control tag attributes are
used
• true: corresponding submitted values are used
Applies to these controls:
•
cfform controls cfinput, cfslider, cftextinput;
overrides
value attribute value
•
cfselect controls that are populated from queries.
Overrides the
selected attribute. See cfselect
on page 312.
•
cftree controls: Overrides the cftreeitem expand
attribute. If
true, expands previously-selected
elements. The
cftree completePath attribute must be
set to
Yes.
•
cfgrid controls: has no effect. (This avoids confusion
as to whether data has been resubmitted to the
database by the control.)
onSubmit Optional JavaScript function to execute after input validation. Use
for preprocessing data before form is submitted. See
Developing ColdFusion MX Applications.
passThrough Optional Passes arbitrary attribute-value pairs to the HTML code
that is generated for the tag. You can use either of the
following formats:
passthrough="title=""myTitle"""
passthrough=’title="mytitle"’
codeBase Optional See
Description
URL of downloadable JRE plug-in (for Internet Explorer
only).
Default: /CFIDE/classes/cf-j2re-win.cab
archive Optional See
Description
URL of downloadable Java classes for ColdFusion
controls.
Default: /CFIDE/classes/CFJava2.jar
Attribute Req/Opt Default Description