Name
cfselect
Synopsis
<cfform> <cfselect> ... </cfform>
Creates a Java select box control to
use in a cfform block.
Attributes
-
name="name" The form-field name for the select box control. Required.
-
display="text" An alternate field from the query (other than
value) to display in the select box. Optional. The default isvalue.-
message="text" Text to appear if validation fails. Optional.
-
multiple="Yes|No" Whether or not multiple item selections should be allowed. Optional. The default is
No.-
onerror="function_name" The name of a JavaScript function that should be executed if validation fails for any reason. Optional.
-
passthrough="HTML_attributes" Any additional HTML attributes you want to pass that aren’t directly supported by the
cfselecttag. Optional.-
query="query_name" A query to use for populating the drop-down box. Optional.
-
required="Yes|No" Whether or not the select box control requires a value before being submitted. Optional. The default is
No.-
selected="column_value" A value that matches at least one
valuethat is automatically selected when the template is called. Optional.-
size="integer" The size of the drop-down box in terms of number of entries. Optional.
-
value="text" The field from
queryto use to fill in the option values of the select box. Optional.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access