User Guide
164 Chapter 2: ColdFusion Tags
In Flash format forms, this tag organizes the contents of the form. It groups and arranges child
tags. The body of this tag can contain the following tags; all other tags and text are ignored:
• cfformgroup
• cfformitem
• cfcalendar
• cfgrid
• cfinput
• cfselect
• cftextarea
• cftree
For more information on using this tag in Flash forms, see Chapter 29, “Creating Forms in
Macromedia Flash” in ColdFusion MX Developer’s Guide.
In XML format, ColdFusion passes the tag and its attributes to the XML; it is the responsibility
of the skin XSLT to handle the XML. The ColdFusion basic skin supports the
horizontal,
vertical, and dualselectlist styles only. For more information on using this tag in XML
forms, see Chapter 29, “Creating Forms in Macromedia Flash” in ColdFusion MX Developer’s
Guide.
Example
For a simple example of an XML form that uses a single cfformgroup tag, see cfform.
The following example shows how to use the cfformgroup tag to arrange elements on a Flash
form. It creates an hdividedbox container that has a vbox container on each side. The left box has
heading text and two radio buttons. The right box has heading text and three check boxes.
<h3>Simple cfformgroup Example</h3>
<cfform name="myform" height="450" width="500" format="Flash" >
<cfformgroup type="hdividedbox" >
<cfformgroup type="VBox">
<cfformitem type="text" height="20">
Pets:
</cfformitem>
<cfinput type="Radio" name="pets" label="Dogs" value="Dogs"
checked>
<cfinput type="Radio" name="pets" label="Cats" value="Cats">
</cfformgroup>
<cfformgroup type="VBox">
<cfformitem type="text" height="20">
Fruits:
</cfformitem>
<cfinput type = "Checkbox" name="chk1" Label="Apples"
value="Apples">
<cfinput type="Checkbox" name="chk2" Label="Bananas"
value="Bananas">
<cfinput type="Checkbox" name="chk3" Label="Pears"
value="Pears">
</cfformgroup>