Name

cfform

Synopsis

<cfform> ... </cfform>

Creates a form capable of using controls, including HTML input types such as input boxes, drop-down boxes, and radio buttons, as well as a number of specialized Java applets, such as tree, grid, and slider controls.

New in ColdFusion MX, the preservedata attribute now works with radio button and checkbox types provided the value of the control matches the value of the posted data.

Attributes

action=" form_action "

Location (page) where the form should be submitted upon completion. Optional.

archive=" URL "

Specifies the URL to a downloadable Java archive file containing Java-based cfform controls. Optional. The default URL is /CFIDE/classes/cfapplets.jar.

class=" style_name "

Name of a CSS (Cascading Style Sheet) style to apply to the HTML form tag generated by cfform. Optional.

codebase=" URL "

Specifies the URL to a downloadable JRE plugin for MS Internet Explorer. Optional. The default URL is /CFIDE/classes/cf-j2re-win.cab.

enablecab="Yes|No"

No longer supported in ColdFusion MX or ColdFusion 5. Whether or not Java controls associated with other cfform elements should be made available to Microsoft Internet Explorer users as Microsoft cabinet files. Optional.

enablejar="Yes|No"

Not currently supported (in the initial MX release). Optional.

enctype=" MIME_type "

The MIME type for data being submitted via the Post method. Optional. The default is application/x-www-form-urlencoded. If, however, you plan to allow file uploads via your ...

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.