UMD Web Site

Page Content   Main Links   Page Links   Utility Links   Search   Footer Links

ColdFusion Development Project

cf_selectdate

Description: Creates select lists for month, day, and year. The form field names, pre-selected date, and the range of years can be specified as parameters.
Syntax:
<cf_selectdate
  nameday = "form_field_name"
  namemonth = "form_field_name"
  nameyear = "form_field_name"
  selectday = "day"
  selectmonth = "month"
  selectyear = "year"
  fromyear = "min_year"
  toyear = "max_year"
  allowempty = "Yes" or "No">
See also: cf_selecttime, cf_validatedate
Attributes:
Attribute Name Required/Optional Default Description
nameday optional day Form field name for the day select list.
namemonth optional month Form field name for the month select list.
nameyear optional year Form field name for the year select list.
selectday optional empty, if allowempty="Yes";
current day otherwise
Pre-selected day value in the range of 1 to 31.
selectmonth optional empty, if allowempty="Yes";
current month otherwise
Pre-selected month value in the range of 1 o 12.
selectyear optional empty, if allowempty="Yes";
current year otherwise
Pre-selected year value in the range of fromyear to toyear.
fromyear optional current year Minimum value in the year select list.
toyear optional current year Maximum value in the year select list.
allowempty optional
If set to Yes, a blank option with empty value attributes will be added to the month, day, and year select lists.
Returns: The HTML code for the form fields.
Example:
<cf_selectdate nameday="d" namemonth="m" nameyear="y"
               selectday="14" selectmonth="5" selectyear="2000"
               fromyear="1990" toyear="2010"
               allowempty="Yes">
,

Contact Info:

Email: webdevelopment@umassd.edu - Web Design & Development

Main Links

Page Links

Utility Links

Search

 
Text Only Options

Top of page


Text Only Options

Open the original version of this page.

Usablenet Assistive is a UsableNet product. Usablenet Assistive Main Page.