• Home
  • About George
  • Contact Me
Blue Orange Green Pink Purple

datefield cfinputs and _f is undefined

Posted in ColdFusion. on Wednesday, June 17th, 2009 by George Tags: ColdFusion
Jun 17

So there have been two occasions I’ve run into this error on a page – and it’s very ambiguous and hard to track down both times I’ve experienced it.  Fortunately, both times have also involved a very easy solution once I looked through the page for the 40th time.  The first time I encountered this, the previous form designer had named both cfforms on the page the same thing.  While this worked, it’s never advisable.  By doing this, the cfcalendar script could not locate the item because it couldn’t track down the form properly.

The second time I ran into this – just a few moments ago – was the same problem surfacing because the declaration for the form had been placed inside the declaration for the table.

1
2
3
<table>
         <form></form>
</table>

This just did not sit well with the browser, being invalid and all.  Once I moved them outside of that formation and made it this:

1
2
3
<form>
      <table></table>
</form>

it worked like a champ.    Hopefully this helps someone out there with this error in the future!

10 Comments

  1. Sandra on November 4th, 2009

    Thank you so much! I was having this issue for hours and couldn’t figure it out why. People like you make our job easier :)

  2. Rayan on March 3rd, 2010

    You are a hero, you just saved my life

    Thanks for the tip

  3. alex on April 1st, 2010

    you rock!

  4. Ashok Ramkumar on May 27th, 2010

    Hey man… you are great… you saved several hours of mine to find about this issue.

  5. Lucy on June 22nd, 2010

    Thank you! Thank you! Thank you! Great solution…it works!

  6. Dan Parker on January 11th, 2011

    Thanks for the tip! One Google search took me right to your page and I was back in business.

  7. Dani on May 10th, 2011

    Thank you! Very helpful

  8. Paul Baylis on October 25th, 2011

    Another subtle way this error can occur is if you inadvertently name two datefields the same. For example, if you have have a FROM date and a TO date in a date range search and you do what I did and simply copy and paste the date fields and forget to rename the second one.

  9. BeekerMD03 on September 24th, 2012

    Great!

    Thanks for the fix. Totally saved me hours of recoding!

  10. KS on May 1st, 2013

    Thanks! Saved my day :)



Leave a Reply

Web Development By George

  • About
    About me. Edit this in the options panel.
  • Photo Stream
  • Categories
    • ColdFusion
    • coldspring
    • Databases
    • Design
    • Flash
    • Flex
    • Internet
    • JavaScript
    • jQuery
    • Model-Glue
    • Personal
    • Subversion
    • Uncategorized
    • YUI
  • Recent Articles
    • Radios and JQuery and IE8
    • Coldfusion, Flex, and SSL
    • Leaving it to the Experts
    • CFAjaxProxy Problems or RTFM
    • I love the Internet
    • Interesting ColdFusion Survey
  • Archives
    • November 2011
    • May 2011
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • November 2009
    • October 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
  • Search




Add to Technorati Favorites

  • Home
  • About George
  • Contact Me

© Copyright Web Development By George. All rights reserved.
Designed by FTL Wordpress Themes brought to you by Smashing Magazine

Back to Top