Skip to content

Miscellaneous

daySelectTag()

daySelectTag() — returns any

Builds and returns a string containing a select form control for the days of the week based on the supplied name.

NameTypeRequiredDefaultDescription
namestringyes—See documentation for textFieldTag.
selectedstringyes—The day that should be selected initially.
includeBlankanyyesfalseSee documentation for select.
labelstringyes—See documentation for textField.
labelPlacementstringyesaroundSee documentation for textField.
prependstringyes—See documentation for textField.
appendstringyes—See documentation for textField.
prependToLabelstringyes—See documentation for textField.
appendToLabelstringyes—See documentation for textField.
<!--- This "Tag" version of the function accepts a `name` and `selected` instead of binding to a model object --->
<cfoutput>
    #daySelectTag(name="dayOfWeek", selected=params.dayOfWeek)#
</cfoutput>