Hard-coded core form issue

Permalink
Hi,

I have a client with a product list that contains a form. The product list is written out using javascript so it will load via ajax.
They want reports in the dashboard to be saved with other forms, so I have created a core form on a test page and then copied the code to the js that generates the product list so it is hard-coded and loads in each product "box" on the product page.

The form sends fine and is received in my email box. The report is also successfully added to the dashboard as it should be.

The only issue is, I set the form to display a thank you message rather than go to another page.
It still goes to my test page, so I edited the forms action:
action="/index.php?cID=561&bID=1164&arHandle=Main&ccm_token=1423048782:b2169b9c05f69e8025848896e371ea68&btask=passthru&method=submit_form#1422427284"

I changed the cID to the product page so in theory it shouldn't go off to another page, but then when I submit the form it just shows a blank screen (no HTML, no errors etc) rather than loading the thank-you message.
Also the form doesn't arrive in my sent box or in reports.

How can I amend the action attribute of the form above to stay on the product page?

Thanks in advance

Dave

madesimplemedia
 
madesimplemedia replied on at Permalink Reply
madesimplemedia
Anyone got an idea about this? :)

Thanks
Dave
Juha replied on at Permalink Reply
Juha
Just a guess without actually seeing the code, but maybe the form does the email sending and data saving when the form block is rendered. If that's the case and you don't have the actual form block on the products page, then it can't do either.

Maybe you could try submitting it via ajax?