beautypg.com

Insert coldfusion date fields – Adobe Dreamweaver CS3 User Manual

Page 691

background image

DREAMWEAVER CS3

User Guide

684

To quickly select the form, click anywhere in the form outline and click the

tag in the tag selector at the

bottom of the Document window.

2

In the Property inspector, set the form method to POST.

3

From the Enctype pop-up menu, select multipart/form-data.

4

Position the insertion point inside the form outline where you want to file field to appear.

5

Select Insert > ColdFusion Objects > CFForm > CFfilefield.

A file field appears in the document.

6

Select the file field on the page and set any of the following properties in the Property inspector:

Cffilefield

Lets you specify a unique name for the control.

Max Length

Lets you specify the maximum number of characters that the path to the file can have.

Validate

Specifies the type of validation for the field.

Validate At

Specifies when the field is validated: onSubmit, onBlur, or onServer.

Label

Lets you specify a label for the field.

Pattern

Lets you specify a JavaScript regular expression pattern to validate input. Omit leading and trailing slashes.

For more information, see the ColdFusion documentation.

Height

Lets you specify the height of the control, in pixels. This property is ignored by the ColdFusion server at run time.

Width

Lets you specify the width of the control, in pixels. This property is ignored by the ColdFusion server at run time.

Size

Lets you specify the size of the control.

Required

Lets you specify whether the file field must contain data before the form is submitted to the server.

Display Tag Editor

Lets you edit properties not listed in the Property inspector.

See also

“Modify ColdFusion form controls” on page 685

“Validate ColdFusion form data” on page 685

Insert ColdFusion date fields

Although you can’t visually insert a ColdFusion date field in Dreamweaver, you can visually set its properties. A
ColdFusion date field is a special type of text field that lets users select a date from a pop-up calendar to insert it in
the text field.

Note: This enhancement is available only if you have access to a computer running ColdFusion MX 7 or later.

1

In Design view, select the CFForm to display its Property inspector.

To quickly select the form, click anywhere in the form outline and click the

tag in the tag selector at the

bottom of the Document window.

2

In the Property inspector, set the form’s Format property to Flash.

The date field control can only be rendered in Flash-based ColdFusion forms.

3

Switch to Code view (View > Code) and enter the following tag anywhere between the opening and closing

CFForm tags:

September 4, 2007