User Guide

428 Chapter 2: ColdFusion Tags
cftree
Description
Inserts a tree control in a form. Validates user selections. Used within a cfform tag block. You can
use a ColdFusion query to supply data to the tree.
Category
Forms tags
Syntax
<cftree name = "name"
format="applet", "flash", xml, or "object"
required = "yes" or "no"
delimiter = "delimiter"
completePath = "yes" or "no"
appendKey = "yes" or "no"
highlightHref = "yes" or "no"
onValidate = "script_name"
message = "text"
onError = "text"
lookAndFeel = "motif" or "windows" or "metal"
font = "font"
fontSize = "size"
italic = "yes" or "no"
bold = "yes" or "no"
height = "integer"
width = "integer"
vSpace = "integer"
hSpace = "integer"
align = "alignment"
border = "yes" or "no"
hScroll = "yes" or "no"
vScroll = "yes" or "no”
style= "style specification"
enabled = "Yes" or "No"
visible = "Yes" or "No"
tooltip = "tip text"
onChange = "ActionScript"
notSupported = "text">
</cftree>
See also
cfapplet
, cfcalendar, cfform, cfformgroup, cfformitem, cfgrid, cfinput, cfselect,
cfslider, cftextarea, cftreeitem; “Working with action pages” in Chapter 26, “Introduction
to Retrieving and Formatting Data,” and “Building tree controls with the cftree tag” in
Chapter 27, “Building Dynamic Forms with cfform Tags,” in ColdFusion MX Developer’s Guide