Operation Manual

642
USING DREAMWEAVER
Building forms
Last updated 3/28/2012
Remember to label the ColdFusion form fields with descriptive text to let users know what they are responding to. For
example, create a “Type your name label” to request name information.
More Help topics
Validate ColdFusion form data” on page 651
Create an HTML form” on page 628
Insert ColdFusion form controls
Use the Insert panel or Insert menu to quickly insert ColdFusion form controls into a ColdFusion form. You need to
create a blank ColdFusion form before inserting controls in it.
Note: These enhancements are only available if you have access to a computer running ColdFusion MX 7 or later.
1 In Design view, place the insertion point inside the form outline.
2 Select the control from the Insert menu (Insert > ColdFusion Objects > CFForm), or from the CFForm category in
the Insert panel.
3 Click the control on the page to select it and then set its properties in the Property inspector.
For information on the properties of specific controls, see the topics about the controls.
More Help topics
Modify ColdFusion form controls” on page 650
Validate ColdFusion form data” on page 651
Insert ColdFusion text fields
You can visually insert a ColdFusion text field or password field into your form, and then set its options.
Note: This enhancement is available only if you have access to a computer running ColdFusion MX 7 or later.
Visually insert a ColdFusion text field
1 In Design view, place the insertion point inside the form outline.
2 In the CFForm category of the Insert panel, click the CF Text Field icon or select Insert > ColdFusion Objects >
CFForm
> CFtextfield.
A text field appears in the form.
3 Select the text field and set its properties in the Property inspector.
4 To label the text field on the page, click beside it and enter text for the label.
Visually insert a password field
1 Repeat steps 1 and 2 in the previous procedure for inserting a text field.
2 Select the inserted text field to display its Property inspector.
3 Select the Password value from the Text Mode pop-up menu in the Property inspector.