Skip to content

Miscellaneous

monthSelectTag()

monthSelectTag() — returns any

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

NameTypeRequiredDefaultDescription
namestringyesSee documentation for textFieldTag.
selectedstringyesThe month that should be selected initially.
monthDisplaystringyesnamesSee documentation for dateSelect.
monthNamesstringyesJanuary,February,March,April,May,June,July,August,September,October,November,DecemberSee documentation for dateSelect.
monthAbbreviationsstringyesJan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,DecSee documentation for dateSelect.
includeBlankanyyesfalseSee documentation for select.
labelstringyesSee documentation for textField.
labelPlacementstringyesaroundSee documentation for textField.
prependstringyesSee documentation for textField.
appendstringyesSee documentation for textField.
prependToLabelstringyesSee documentation for textField.
appendToLabelstringyesSee documentation for textField.
<!--- This "Tag" version of the function accepts a `name` and `selected` instead of binding to a model object --->
<cfoutput>
    #monthSelectTag(name="monthOfBirthday", selected=params.monthOfBirthday)#
</cfoutput>