Builds and returns a string containing three select form controls for hour, minute, and second based on the supplied objectName and property.
Name | Type | Required | Default | Description |
---|---|---|---|---|
objectName | any | No | See documentation for textField. | |
property | string | No | See documentation for textField. | |
association | string | No | See documentation for textfield. | |
position | string | No | See documentation for textfield. | |
order | string | No | hour,minute,second | Use to change the order of or exclude time select tags. |
separator | string | No | : | Use to change the character that is displayed between the time select tags. |
minuteStep | numeric | No | 1 | Pass in 10 to only show minute 10, 20, 30, etc. |
secondStep | numeric | No | 1 | Pass in 10 to only show seconds 10, 20, 30, etc. |
includeBlank | any | No | false | See documentation for select. |
label | string | No | false | See documentation for dateSelect. |
labelPlacement | string | No | around | See documentation for textField. |
prepend | string | No | See documentation for textField. | |
append | string | No | See documentation for textField. | |
prependToLabel | string | No | See documentation for textField. | |
appendToLabel | string | No | See documentation for textField. | |
errorElement | string | No | span | See documentation for textField. |
errorClass | string | No | fieldWithErrors | See documentation for textField. |
combine | boolean | No | See documentation for dateSelect. | |
twelveHour | boolean | No | false | whether to display the hours in 24 or 12 hour format. 12 hour format has AM/PM drop downs |
<!--- View code ---> <cfoutput> #timeSelect(objectName="business", property="openUntil")# </cfoutput> <!--- Show fields for hour and minute ---> <cfoutput> #timeSelect(objectName="business", property="openUntil", order="hour,minute")# </cfoutput> <!--- Only show 15-minute intervals ---> <cfoutput> #timeSelect(objectName="appointment", property="dateTimeStart", minuteStep=15)# </cfoutput>