Skip to content

Miscellaneous

timeSelectTags()

timeSelectTags() — returns any

Builds and returns a string containing three select form controls for hour, minute, and second based on name.

NameTypeRequiredDefaultDescription
namestringyes—See documentation for textFieldTag.
selectedstringyes—See documentation for selectTag.
orderstringyeshour,minute,secondSee documentation for timeSelect.
separatorstringyes:See documentation for timeSelect.
minuteStepnumericyes1See documentation for timeSelect.
secondStepnumericyes1See documentation for timeSelect.
includeBlankanyyesfalseSee documentation for select.
labelstringyes—See documentation for dateSelect.
labelPlacementstringyesaroundSee documentation for textField.
prependstringyes—See documentation for textField.
appendstringyes—See documentation for textField.
prependToLabelstringyes—See documentation for textField.
appendToLabelstringyes—See documentation for textField.
combinebooleanyes—See documentation for dateSelect.
twelveHourbooleanyesfalseSee documentation for timeSelect.
<!--- This "Tag" version of function accepts `name` and `selected` instead of binding to a model object --->
<cfoutput>
    ##timeSelectTags(name="timeOfMeeting" selected=params.timeOfMeeting)##
</cfoutput>

<!--- Show fields for `hour` and `minute` only --->
<cfoutput>
	##timeSelectTags(name="timeOfMeeting", selected=params.timeOfMeeting, order="hour,minute")##
</cfoutput>