Skip to main content
Inspiring
April 1, 2009
Answered

Element not found error despite use of cfparam

  • April 1, 2009
  • 2 replies
  • 1310 views
Hello -

I was hoping someone could identify the problem with my form. Despite the fact that I have defined all of my inputs with cfparams at the top of the page, unless all of the fields are filled out, I get 'Element not defined' errors for any fields not filled out.

I'm not seeing an "Attach Code" button so here's a link to a .zip of the page. Please let me know if you need anything else.
http://www.sfcatholicschools.org/new_employee.zip
    This topic has been closed for replies.
    Correct answer
    I use the cfparam on the action page, not on the originating page. That way if a field came over without a value, it now has one.

    2 replies

    Inspiring
    April 2, 2009
    I *knew* I would say "D'OH!"

    I was confused because to build this form I used another one that was self-posting as a starter. That would explain why the cfparams were on the same page... it was both form and action page.

    Hopefully I'll get to build one or two more of these and then I'll get the hang of it. Thank you so much :D
    Correct answer
    April 2, 2009
    I use the cfparam on the action page, not on the originating page. That way if a field came over without a value, it now has one.