User Guide

cfform 151
cfform
Description
Builds a form with CFML custom control tags; these provide more functionality than standard
HTML form input elements. You can include the resulting form on the client page as HTML or
Flash content, and generate the form using XML and XSLT.
Category
Forms tags
Syntax
<cfform
name = "name"
action = "form_action"
method = "POST" or "GET"
format = "HTML" or "Flash" or "XML"
skin = "Flash or XSL skin"
style = "style specification"
preserveData = "yes" or "no"
onSubmit = "javascript"
scriptSrc = "path"
codeBase = "URL"
archive = "URL"
The following attributes are supported in Flash and XML only
width = "pixels or percent"
height = "pixels or percent"
The following attributes are supported in Flash only
onError = "ActionScript code"
wMode = "window" or "transparent" or "opaque"
accessible = "yes" or "no"
preloader = "yes" or "no"
timeout = "seconds"
The following attributes are supported in HTML and XML only
class = "form class"
enctype = "Internet media type"
id = "HTML id"
onload = "load event script"
onreset = "reset event script"
target = "target window or frame">
...
</cfform>
See also
cfapplet
, cfcalendar, cfformgroup, cfformitem, cfgrid, cfinput, cfselect, cfslider,
cftextarea, cftree; Part V, “Requesting and Presenting Information” in ColdFusion MX
Developer’s Guide
History
ColdFusion MX 7:
Added ability to set the default value of the scriptSrc attribute in the ColdFusion MX
Administrator.