User Guide

54 Chapter 2: ColdFusion Tags
cfcalendar
Description
Puts an interactive Macromedia Flash format calendar in an HTML or Flash form. Not
supported in XML format forms. The calendar lets a user select a date for submission as a form
variable.
Category
Forms tags
Syntax
<cfcalendar
name = "name of calendar"
height = "height"
width = "width"
selectedDate = "date"
startRange = "first disabled date"
endRange = "last disabled date"
disabled = "true", "false", or no attribute value
mask = "character pattern"
dayNames = "days-of-the-week labels"
monthNames = "month labels"
visible = "Yes" or "No"
enabled = "Yes" or "No"
tooltip = "Tip text"
onChange = "actionscript to invoke">
See also
cfform
, cfgrid, cfinput, cfselect, cfslider, cftextarea, cftree; “About Flash form
styles” in Chapter 29, “Creating Forms in Macromedia Flash” in ColdFusion MX Developer’s
Guide.
History
ColdFusion MX 7: Added tag.
Attributes
Attribute Req/Opt Default Description
name Required The name of the calendar.
height Optional Determined by
Flash
The vertical dimension of the calendar specified in
pixels.
width Optional Determined by
Flash
The horizontal dimension of the calendar specified
in pixels.
selectedDate Optional None (Flash
shows the
current month)
The date that is initially selected. It is highlighted in a
color determined by the form skin. Must be in mm/
dd/yyyy or dd/mm/yyyy format, depending on the
current locale. (Use the
setlocale tag to set the
locale, if necessary.)