This content has been marked as final. Show 3 replies
If that's the case, put your datefield inside a div or span tag and make that visible/hidden. If you still get a value when it's hidden, deal with it on the results page.
Ok, I see in where cfinput type=datefield was only for flash forms but now according to the docs CF8 supports support cfinput type=datefield in html. This excerpt is from cf8 livedocs, does what you suggested still apply with what the history changes are stated to be?
* Added autosuggest, autosuggestBindDelay, autosuggestMinLength, delimiter, maxResultsDisplayed, showAutosuggestLoadingIcon, and typeahead attributes.
* Added support for the bind attribute in HTML forms and the bindAttribute and bindOnload, and onBindError attributes.
* Added the sourceForTooltip attribute
* Added support for datefield value of the type attribute in HTML forms.
document.form.listoncalendardate.visible is not a valid js code.
you need to use
document.form.listoncalendardate.style.visibility="hidden", and that is
if your FORM tag has NAME="form" attribute. otherwise use the FORM's
NAME instead of 'form'.