Submitting form just clears form on SOME pages (5.7.3.1)

Permalink
Hi,

I have created a new website (http://ndideashop.com) with a basic form on the home page. Submitting the form just clears the form and reloads the page. There is no error in the form log. Tried with and without a notification email set. Tried on various browsers and both signed in and out. The url says "sureySuccess=1" which I think is part of the problem.
There are identical forms on the contact-us page and on the (hidden) about-us page and these work perfectly.
All page on the website use the same template.

Edit: I had to remove the form from the live site but you can find an example athttp://dev.ndideashop.com where the same problem exists.

Edit to add info: Clean install of concrete5 with an empty site. No additional JavaScript added other than Google Analytics code which I subsequently removed to see if it made a difference. I have debugging turned on and no errors are displayed (which is odd as C5 code normally throws up a load of warnings). Also, cache on or off makes no difference.

Edit 2 to add more info: I deleted all form data from the database, cleared the cache but the situation is the same. All forms are created from scratch, all pages use the same template.

Edit 3: Tried changing themes but it made no difference, forms will not work on the homepage.

Could someone please help me debug this?

BethCM
 
WebcentricLtd replied on at Permalink Reply
hello, this is ringing bells but I can"t just quite remember.
Do you have pretty urls turned on?
Does itbwork ok if you turn them off and submit the form?
BethCM replied on at Permalink Reply
BethCM
Makes no difference if pretty url's are on or off.

(Added more info to OP)

Update: If I create a new page (http://ndideashop.com/about-us) and add a form it works. If I create a new sidebar the form still only works on the new page.
WebcentricLtd replied on at Permalink Reply
Is the form block embedded in a stack, global area, or was it copied from clipboard.

I haven't been able to recreate your particular error but it looks like there may be a bug with forms if you do any of the above (there is also an issue with multiple forms on the same page).

I tried your form - the only thing of note I could see was that in the URL in the address bar after submission was that there was no question set id - so it looks as though that is getting lost somewhere.
BethCM replied on at Permalink Reply
BethCM
Form is created from scratch and is not part of a stack or global area. Just a stand alone form block. They all are.

I just deleted all of the form information from the database, cleared the cache and re-created the forms. Once again the only form that does NOT work is the one on the home page. The form on the contact-us and the (hidden) about-us page both work perfectly.

So the issue seems to be related to the home page. ALL the pages in the site use the same template though.
BethCM replied on at Permalink Reply
BethCM
Update: If I create a new page and duplicated the content of the home page then the form works.
I have tried deleting everything on the homepage, clearing cache, removing old versions and then re-adding the content but still it results in the form not working. I've created new blocks and added a form to that but still it doesn't work.
I then changed the theme to Elemental and it made no difference, the form on the home page still didn't work.

All pages, including the home page use the same template. There is something about the code of the home page that is causing this but I can't figure it out.

Can anyone help with this.

Oh yes, just to add insult, it seems that it's not possible to replace the home page like you can in Wordpress or in fact, in any way at all. Awesome. That's genius right there.
BethCM replied on at Permalink Reply
BethCM
I had to remove the form from the live site but you can find an example athttp://dev.ndideashop.com where the same problem exists.
andrew replied on at Permalink Reply
andrew
Really not sure why this is happening on the home page. This used to happen on the home page and we thought we had this issue fixed, but I notice you're on 5.7.3.1. When I try this on a sample 5.7.3.1 installation submitting the form I don't seem to have the same issue.

We have done some more work on this in 5.7.4 – hopefully when that comes out it'll fix your issues.
linuxoid replied on at Permalink Reply
linuxoid
I am running 5.7.5.8 and seem to have the same problem.

https://www.concrete5.org/community/forums/customizing_c5/c5.7.5.7-f...