Skip to main content
Participating Frequently
May 20, 2010
Answered

validate cfinput datefields

  • May 20, 2010
  • 1 reply
  • 2421 views

I am a beginner and I am searching how to validate the cfinput datefields, for example. How can you get the days, months and years of the flash form. What are the functions? Do you know how or where I can get this information? Thanks.

    This topic has been closed for replies.
    Correct answer BKBK

    Bkbk, thanks! That is exactly what I want! Have searched and immediately already found one answer - still trying to understand it. Will be getting back to let you know.


    I'll save you some time, Monique. I don't know which one you found, but what you ask for is all here, in Djkhalif's post, Advance date 90 days when date change in Form , courtesy of  -==cfSearching==- and yours truly.

    1 reply

    Inspiring
    May 27, 2010

    Try

    http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/js/html/wwhelp.htm

    "The mask attribute controls the format of data that can be entered into a field. You can combine masking and validation on a field.

      • In Flash format, the mask can... control the format of the date chosen using the datefield input control...

    The following pattern specifies that the Flash form sends the date selected using a datefield input control to ColdFusion as text in the format 04/29/2004:

    <cfinput name="startDate" type="datefield" label="date:" mask="mm/dd/yyyy"/>..."