Using cfform, making a datefield be a preselected Year

Somebody once told me they didn’t like flash forms because they were far too limited, I agree that flex is a better choice after using flex… but I would also say, that flash forms in coldfusion 7.0.2 have their own place as well…

The following example shows how to use cfform format=”flash” and make a datefield a preselected Date… it’s such a simple example… i’m not quite sure why i should even blog it, but you never know who might need it.

View Example

Download Example

<cfform

name=“myForm”

format=“flash”

width=“350” height=“250”>

<cfinput name=“startDate” type=“datefield”

label=“date:” mask=“mm/dd/yyyy” value=“03/06/1983”

/>

</cfform>

Leave a comment