Skip to main content
Inspiring
November 11, 2008
Question

Help with Element EMAIL is undefined in FORM

  • November 11, 2008
  • 3 replies
  • 739 views
I am having issues getting my form to work properly after moving my files in my repository into a trunk directory. It may not be the reason things are failing now but it is the only change I have made since yesterday when this code worked. Any help would be greatly appreciated.

Element EMAIL is undefined in FORM.


The error occurred in C:\dev\b\trunk\content\contactnew.cfm: line 139

137 : <!--- Send an e-mail to the proper group with the form information --->
138 : <cfmail
139 : from="#form.email#"
140 : to="d@b.com"
141 : subject="Contact Us Form from"


--------------------------------------------------------------------------------

Resources:
Check the
ColdFusion documentation
to verify that you are using the correct syntax.
Search the
Knowledge Base
to find a solution to your problem.


Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Remote Address 127.0.0.1
Referrer
Date/Time 11-Nov-08 03:51 PM

Stack Trace (click to expand)
at cfcontactnew2ecfm541056183.runPage(C:\dev\b\trunk\content\contactnew.cfm:139)


coldfusion.runtime.UndefinedElementException: Element EMAIL is undefined in FORM.
at coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1659)
at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1612)
at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1747)
at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1740)
at cfcontactnew2ecfm541056183.runPage(C:\dev\b\trunk\content\contactnew.cfm:139)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:175)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Here is the code I am working on...
    This topic has been closed for replies.

    3 replies

    Inspiring
    November 12, 2008
    Move the cfdump so that it runs immediately before the line of code that crashes.
    Inspiring
    November 11, 2008
    I tried adding what you said to the document. The email is not given when the form opens in the browser but is passed via the form after it is filled out and submited. The email value should be whatever the person adds to the email textbox. Again this was working yesterday but has since stopped after I migrated my files into a trunk directory in SVN.

    Thanks for your reply.
    Inspiring
    November 11, 2008
    Start your results page with
    <cfdump var="#form#">
    is the email value what you expected?