<CFSELECT NAME="name" REQUIRED="Yes/No" MESSAGE="text" ONERROR="text" SIZE="integer" MULTIPLE="Yes/No" QUERY="queryname" SELECTED="column_value" VALUE="text" DISPLAY="text" PASSTHROUGH="HTML_attributes"> </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.
Required. A name for the form you are creating.
Required. Size of the drop-down list box in number of entries.
Optional. Yes or No. If Yes, a list element must be selected when the form is submitted. Default is No.
Optional. Message that appears if REQUIRED="Yes" and no selection is made.
Optional. The name of a valid JavaScript function you want to execute in the event of a failed validation.
Optional. Yes or No. Yes permits selection of multiple elements in the drop-down list box. The default is No.
Optional. Name of the query to be used to populate the drop-down list box.
Optional. Enter a value matching at least one entry in VALUE to preselect the entry in the drop-down list box.
Optional. The query column value for the list element. Used with the QUERY attribute.
Optional. The query column displayed. Defaults to the value of VALUE. Used with the QUERY attribute.
Optional. HTML attributes that are not explicitly supported by CFSELECT. If you specify an attribute and its value, the attribute and its value are passed to the HTML code that is generated for the CFSELECT tag. See the Usage section for more information about specifying values.