I’m new to webdev, and I’ve been trying to get my website’s form to show the default Netify confirmation when something is submitted. The info shows in verified forms, and I even get an email…but nothing happens on the page itself.
I have tried to troubleshoot it myself using the documentation and the forums, but I feel something is flying over my head.
By default, when visitors complete a form, they will see a generically styled success message with a link back to the form page. You can replace the default success message with a custom page you create by adding an action attribute to the <form> tag, entering the path of your custom page (like "/pages/success" ) as the value. The path must be relative to the site root, starting with a / .
In the code in the screenshot, I don’t see an action attribute. Would you please test adding an action attribute?
If this doesn’t resolve the issue please let us know.
@mozbar, first I must apologize as I completely misread your post. I thought (quite incorrectly) that you wanted a custom success page. You didn’t say that. You are quite clear you are trying to reach the default page and, to be honest, I’m confused how I could have possibly misunderstood.
Moving on to an actual answer.
I tested a form submission for that site and I also didn’t see the default success page. Instead, I saw the same page without any change. However, in the network tab of browser dev console, I do see that Netlify is responding with the HTML for the default success page.
Next, I tested in a browser with javascript disabled. In this test the default success page was also sent with a 200 but this time it displayed normally. (I used Firefox and NoScript for this test.)
So, to summarize, the site’s javascript itself is preventing the success page from being displayed. I hope this helps to track down a solution and if there are other questions about this, please let us know.