Miscellaneous
hourSelectTag()
Signature
Section titled “Signature”hourSelectTag() — returns any
Description
Section titled “Description”Builds and returns a string containing one select form control for the hours of the day based on the supplied name.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | yes | — | See documentation for textFieldTag. |
selected | string | yes | — | The hour that should be selected initially. |
includeBlank | any | yes | false | See documentation for select. |
label | string | yes | — | See documentation for textField. |
labelPlacement | string | yes | around | See documentation for textField. |
prepend | string | yes | — | See documentation for textField. |
append | string | yes | — | See documentation for textField. |
prependToLabel | string | yes | — | See documentation for textField. |
appendToLabel | string | yes | — | See documentation for textField. |
twelveHour | boolean | yes | false | See documentation for timeSelect. |
Examples
Section titled “Examples”<!--- This "Tag" version of the function accepts a `name` and `selected` instead of binding to a model object --->
<cfoutput>
#hourSelectTag(name="hourOfMeeting", selected=params.hourOfMeeting)#
</cfoutput>
<!--- Show 12 hours instead of 24 --->
<cfoutput>
#hourSelectTag(name="hourOfMeeting", selected=params.hourOfMeeting, twelveHour=true)#
</cfoutput>