/t5/coldfusion-discussions/coldfusion-ajax-submitform-amp-form-not-found/td-p/855633May 20, 2008
May 20, 2008
Copy link to clipboard
Copied
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">
/t5/coldfusion-discussions/coldfusion-ajax-submitform-amp-form-not-found/m-p/855634#M78932May 20, 2008
May 20, 2008
Copy link to clipboard
Copied
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.
/t5/coldfusion-discussions/coldfusion-ajax-submitform-amp-form-not-found/m-p/855636#M78934May 22, 2008
May 22, 2008
Copy link to clipboard
Copied
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);
}