Using CFINPUT dateField with onChange
i imagine easy, have tried search here google , have come empty.
i have cfinput datefield control ok when form loads, want control capture new date selection user , update form. believe onchange event used process this, don't know how code refresh form using new date , keep user's date selection.
i have cfinput datefield control ok when form loads, want control capture new date selection user , update form. believe onchange event used process this, don't know how code refresh form using new date , keep user's date selection.
i think i'm there with:
<cfinput name="currdate"
onchange="geturl('index2.cfm?currdate=' + currdate.selecteddate, '_self')"
type="datefield"
value="#newcurrdate#" />
but returns value in wrong format like:
index2.cfm?currdate=thu%20sep%2014%2000:00:00%20gmt-0700%202000
how format/simplify "currdate.selecteddate"?
<cfinput name="currdate"
onchange="geturl('index2.cfm?currdate=' + currdate.selecteddate, '_self')"
type="datefield"
value="#newcurrdate#" />
but returns value in wrong format like:
index2.cfm?currdate=thu%20sep%2014%2000:00:00%20gmt-0700%202000
how format/simplify "currdate.selecteddate"?
More discussions in ColdFusion Rich Forms
adobe
Comments
Post a Comment