User Guide

Table Of Contents
610 Chapter 26: Introduction to Retrieving and Formatting Data
These tags support all the attributes of their HTML counterparts, plus ColdFusion attributes and
features.
ColdFusion also provides the following forms tags that have no direct equivalent in HTML:
cfcalendar Lets users select dates from a Flash month-by-month calendar.
cfgrid Displays and lets users enter data in a row and column grid format; can get data
directly from a query.
cfslider Lets users input data by moving a sliding marker.
cftree Displays data in a hierarchical tree format with graphical indicators; can get data
directly from a query.
ColdFusion Form tag features
ColdFusion forms tags provide the following features:
Built-in validation support You can validate data in the client browser or on the server. You can
specify that a field is required, contains a specific type of data, has a maximum length, or is in a
range of values. You can also use data masking to control user input. For more information on
validation, see Chapter 28, “Validating Data,” on page 659.
Note: ColdFusion also provides a method of doing on-server validation of HTML form controls.
Flash format forms and elements
You can display a form as Flash, which works identically on
a variety of platforms and provides additional display features not available in HTML. These
features include accordion-style and multiple-tab form panes and automatic element positioning.
You can also display
cftree, cfgrid, and cfcalendar form elements as Flash items in an
otherwise-HTML form. For more information on Flash forms and form elements, see
Chapter 29, “Creating Forms in Macromedia Flash,” on page 687.
XML Skinable forms ColdFusion MX can generate XML forms and apply XSLT skins to
format the forms. XML format forms let you separate the form presentation from the form logic
and data field information. They give you detailed control over the appearance of the forms by
applying custom skins, and let you create custom controls. For more information on XML
skinnable forms, see Chapter 30, “Creating Skinnable XML Forms,” on page 709.
Direct support for ColdFusion variables You can easily use ColdFusion variables directly to
populate your form controls. For example you can specify a query result to populate the
cfgrid
and
cftree tags.
These features make CFML forms tags powerful and flexible, and let you easily develop fully
featured, pleasing forms.
This chapter uses CFML tags, but does not describe or use most of their special features.
Chapter 27, “Building Dynamic Forms with cfform Tags,” on page 631 describes how to use
many of the tags that are specific to ColdFusion, such as
cftree and cfgrid. The other chapters
listed above cover other CFML form tag features in detail.