Return to v1.4.5 docs

dateSelectTags()



Builds and returns a string containing three select form controls (month, day, and year) based on a name and value.

Name Type Required Default Description
name string Yes See documentation for textFieldTag.
selected string No See documentation for selectTag.
order string No month, day, year See documentation for dateSelect.
separator string No See documentation for dateSelect.
startYear numeric No 2010 See documentation for dateSelect.
endYear numeric No 2020 See documentation for dateSelect.
monthDisplay string No names See documentation for dateSelect.
monthNames string No January, February, March, April, May, June, July, August, September, October, November, December See documentation for dateSelect.
monthAbbreviations string No Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec See documentation for dateSelect.
includeBlank any No false See documentation for select.
label string No 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.
combine boolean No See documentation for dateSelect.
<!--- This "Tag" version of function accepts `name` and `selected` instead of binding to a model object --->
<cfoutput>
	#dateSelectTags(name="dateStart", selected=params.dateStart)#
</cfoutput>

<!--- Show fields for month and year only --->
<cfoutput>
	#dateSelectTags(name="expiration", selected=params.expiration, order="month,year")#
</cfoutput>