Skip to main content
May 20, 2008
Answered

ColdFusion.Ajax.submitForm & Form not found

  • May 20, 2008
  • 4 replies
  • 1079 views
I am trying to submit a form using ColdFusion.Ajax.submitForm and only get
"Form not found, form id: myform"
-- calling using <a class="save" href="javascript:submitForm()" title="Save this record"><span>Save</span></a>

within
<cfform name="myform"></cform>

there only 1 field
<input type="text" name="PARTICIPATION_FLG" id="input-PARTICIPATION_FLG" value="Y" tabindex="1">
This topic has been closed for replies.
Correct answer
solved this issue -- there was a cfform within the cfform via includes on the page.
thanks to all that gave this thought!!

4 replies

Correct answer
May 22, 2008
solved this issue -- there was a cfform within the cfform via includes on the page.
thanks to all that gave this thought!!
May 22, 2008
i had actually had both the name="myform" and id="myform" (i assume that is a typo and you dont mean 2 seperate names) --
the submitForm() function is
function submitForm() {
ColdFusion.Ajax.submitForm('myform', 'listing.cfc?method=setAgreement', callback, errorHandler);
}
Inspiring
May 21, 2008
what does your submitForm() js function look like?

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Inspiring
May 20, 2008
torstenp wrote:
> I am trying to submit a form using ColdFusion.Ajax.submitForm and only get
> "Form not found, form id: myform"
> -- calling using <a class="save" href="javascript:submitForm()" title="Save
> this record"><span>Save</span></a>
>
> within
> <cfform name="myform"></cform>
>
> there only 1 field
> <input type="text" name="PARTICIPATION_FLG" id="input-PARTICIPATION_FLG"
> value="Y" tabindex="1">
>

You may need to set the id of the form as well as it's name. Give this
a try.

<cfform id="myform" name="myhform">...