User Guide
132 Chapter 2: ColdFusion Tags
cfform
Description
Builds a form with CFML custom control tags; these provide more functionality than standard
HTML form input elements.
Category
Forms tags
Syntax
<cfform
name = "name"
action = "form_action"
preserveData = "Yes" or "No"
onSubmit = "javascript"
target = "window_name"
encType = "type"
passThrough = "HTML_attribute(s)"
codeBase = "URL"
archive = "URL"
scriptSrc = "path"
standard HTML attributes>
...
</cfform>
See also
cfapplet, cfgrid, cfinput, cfselect, cfslider, cftextinput, cftree, cftreeitem
History
ColdFusion MX:
• Deprecated the enableCAB attribute. It might not work, and might cause an error, in later
releases.
• Changed the name and action attributes to optional.
Attributes
Attribute Req/Opt Default Description
name Optional CFForm_1
[, ...]
A name for the form.
action Optional Name of ColdFusion page to execute when the form is
submitted for processing.
scriptSrc Optional /cfide/scripts
/cfform.js
Lets the user control the URL of the script file; useful if
you do not keep the file in the /cfide directory.