CFSELECT
Used inside CFFORM, CFSELECT allows you to construct a drop-down list box form control. You can populate the drop-down list box from a query, or using the OPTION tag. Use OPTION elements to populate lists. Syntax for the OPTION tag is the same as for its HTML counterpart.
Note
CFSELECT requires the client to download a Java applet. Downloading an applet takes time, so using CFSELECT may be slightly slower than using a SELECT element within an HTML FORM tag. In addition, browsers must be Java-enabled for CFSELECT to work properly.
Syntax
<CFSELECT NAME="name" REQUIRED="Yes" or "No" MESSAGE="text" ONERROR="text" SIZE="integer" MULTIPLE="Yes" or "No" QUERY="queryname" SELECTED="column_value" VALUE="text" DISPLAY="text" PASSTHROUGH="HTML_attributes"> ...
Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.