Operation Manual

641
USING DREAMWEAVER
Building forms
Last updated 3/28/2012
Encoding Type Specifies the encoding method used for transmitting the form data.
Note: Encoding type does not refer to character encoding. This attribute specifies the content type used to submit the form
to the server (when the value of method is
post). The default value for this attribute is application/x-www-form-
urlencoded.
Format Determines what kind of form is created:
HTML Generates an HTML form and sends it to the client. The cfgrid and cftree child controls can be in Flash or
applet format.
Flash Generates a Flash form and sends it to the client. All controls are in Flash format.
XML Generates XForms XML and puts the results in a variable with the ColdFusion form name. Does not send
anything to the client. The cfgrid and cftree child controls can be in Flash or applet format.
Style Lets you specify a style for the form. For more information, see the ColdFusion documentation.
Flash/XML Skin Lets you specify a halo color to stylize the output. The theme determines the color used for highlighted
and selected elements.
Preserve Data Determines whether to override the initial control values with submitted values when the form posts to
itself.
If False, values specified in the control tag attributes are used.
If True, submitted values are used.
Scripts src Specifies the URL, relative to the web root, of the JavaScript file that contains client-side code used by the
tag and its child tags. This attribute is useful if the file is not in the default location. This attribute may be required in
some hosting environments and configurations that block access to the /CFIDE directory. The default location is set
in the ColdFusion Administrator; by default, it is /CFIDE/scripts/cfform.js.
Archive Specifies the URL of downloadable Java classes for cfgrid, cfslider, and cftree applet controls. The default
location is /CFIDE/classes/cfapplets.jar.
Height Specifies the height of the form.
Width Specifies the width of the form.
Display Tag Editor for cfform Lets you edit properties not listed in the Property inspector.
4 Insert ColdFusion form controls.
Place the insertion point where you want the ColdFusion form control to appear in the ColdFusion form, and then
select the control from the Insert menu (Insert
> ColdFusion Objects > CFForm), or from the CFForm category in the
Insert panel.
5 If required, set the properties of the control with the Property inspector.
Make sure the control is selected in Design view and then set the properties in the Property inspector. For more
information on the properties, click the Help icon in the Property inspector.
6 Adjust the layout of the ColdFusion form.
If you’re creating an HTML-based form, you can use line breaks, paragraph breaks, preformatted text, or tables to
format your forms. You cannot insert a ColdFusion form in another ColdFusion form (that is, you cannot overlap
tags), but you can include more than one ColdFusion form in a page.
If you’re creating a Flash-based form, use Cascading Style Sheets (CSS) styles to lay out your form. ColdFusion ignores
any HTML in the form.