User Guide

Chapter 1: ColdFusion Tags 223
CFTREE
The CFTREE form custom control allows you to place a tree control in a CFFORM. User
selections can be validated. Individual tree items are created with CFTREEITEM tags
inside the CFTREE tag block.
Note CFTREE incorporates a Java applet, so a browser must be Java-enabled
for CFTREE to work properly.
Syntax <CFTREE NAME="name"
REQUIRED="Yes/No"
DELIMITER="delimiter"
COMPLETEPATH="Yes/No"
APPENDKEY="Yes/No"
HIGHLIGHTHREF="Yes/No"
ONVALIDATE="script_name"
MESSAGE="text"
ONERROR="text"
FONT="font"
FONTSIZE="size"
ITALIC="Yes/No"
BOLD="Yes/No"
HEIGHT="integer"
WIDTH="integer"
VSPACE="integer"
HSPACE="integer"
ALIGN="alignment"
BORDER="Yes/No"
HSCROLL="Yes/No"
VSCROLL="Yes/No"
NOTSUPPORTED="text">
</CFTREE>
NAME
Required. A name for the CFTREE control.
REQUIRED
Optional. Yes or No. User must select an item in the tree control. Default is No.
DELIMITER
Optional. The character used to separate elements in the form variable PATH. The
default is "\".
COMPLETEPATH
Optional. Yes passes the root level of the treename.path form variable when the
CFTREE is submitted. If omitted or No, the root level of this form variable is not
included.