Form success page gives 404 even though the page exists

Hello!
I have a contact form on my website which is designed to show a custom success page when the form is submitted, but for some reason it always gives me a 404 error, although when I type in the page manually in the address bar it works.
The success page works perfectly fine on the localhost though.
Link to the contact form: Drop Us A Note
Link to the success message: Thank you for your Message!
The code to my form:

note that the action to my form is “/messages/”

I would really appreciate it if anyone gave me a solution.
Thanks in advance!

Hiya, sorry you are having trouble getting your forms to work.

This Support Guide is the first port of call to debug any forms issues. There are also many other Support Guides for forms - you can find them here: #Netlify-support:support-guides

We also recommend trying to search the forums or look at topics tagged Netlify forms if you haven’t already - it’s likely your question was already asked by someone else!

If you are still having problems, please provide more information such as what you have already tried, and a link to your live form. :slight_smile:

Hello!
I did read all the documentation available about this issue but still couldn’t find a solution.
I have no idea what went wrong and it would be helpful if you have a look at my issue.
Thanks

Hey!
So I found out what the problem was, apparently I can’t use a function that calls a URL {{ site.Params. ~ }}. It worked when I typed in the path itself as the action parameter.
Sorry for the trouble and thank you for your reply.

1 Like