Inserting ColdFusion date fields

Inserting 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.

This Dreamweaver enhancement is only available if you have access to a computer running ColdFusion MX 7 or later. For more information, see Enabling the ColdFusion enhancements.

To insert a ColdFusion date field and set its properties:

  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 <cfform> 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:
    <cfinput name="datefield" type="datefield">
    
  4. In the Property inspector, set the date field properties.

    For more information, click the Help icon in the Property inspector.



Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly
Building ColdFusion Applications Rapidly
Reference
Building ASP.NET Applications Rapidly
Building ASP and JSP Applications Rapidly