Skip to main content
Participating Frequently
November 29, 2010
Question

How to set a default date value

  • November 29, 2010
  • 4 replies
  • 749 views

I have this input field in a popup window, but can not get it to show a default value.  Any ideas?

<cfinput type="datefield" name="blockDatePOP" id="blockDatePOP" value="#NOW()#" required="yes" message="You must enter a block date" mask="d mmm, yyyy"   />

Thanks,

Darrin

    This topic has been closed for replies.

    4 replies

    sabot1Author
    Participating Frequently
    November 29, 2010

    it does not work in the popup, which is odd..... but that may be the issue.

    Thanks

    Community Expert
    November 29, 2010

    Maybe you should post your entire code for the page and the popup window.

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

    GSA Schedule, and provides the highest caliber vendor-authorized

    instruction at our training centers, online, or onsite.

    Read this before you post:

    http://forums.adobe.com/thread/607238

    Dave Watts, Eidolon LLC
    Owainnorth
    Inspiring
    November 29, 2010

    Does it work *not* in a popup window? I copied your code directly into a cfform and I got a date picker, defaulted to today.

    sabot1Author
    Participating Frequently
    November 29, 2010

    nope tryed that got same result...the field just shows as blank

    Inspiring
    November 29, 2010

    Try it without the mask attribute.