I am receiving the data upon pressing submit button on the form but the default thank-you screen doesn’t show up. Here are things that I did to debug the situation.
the netlify documentation to make sure the right parameters are set. Checked using dev tools to identify the network activity caused by clicking submit button. And I see netlify sends the response correctly but it’s not shown by the browser.
Finally, I replaced the default thank-you with my own html file and changed action=“/my_thank_you.html” but the same issue persisted.
Here’s my form. I would really appreciate if you could help identify the issue here. Thanks!
<form name="index_contact" method="POST" data-netlify="true">
<input type="text" name="name" required />
><span class="error">Please enter your name</span>
<input type="text" name="email" class="required" required />
>Please enter your email address in format: firstname.lastname@example.org</span
<textarea name="message" class="required" required></textarea>
><span class="error">Please enter your message</span>
<button type="submit" value="Send message" class="btn send_mail">
October 10, 2019, 4:28pm
hi there, first of all, did you check this guide?
Last reviewed November 2022
Please give these debugging tips a try before making a new post. If none of the suggestions work, please include the information that we request at the end of this guide in the new post that you create. Thank you!
Why use Forms?
Forms are one of the most useful parts of modern websites because they allow us to capture input from our visitors.
There are many ways to use forms: contact forms, such as contact forms and sign-up forms. Seeing as there are many types of…
here is another thread that might be helpful:
I’m running into two issues that I’ve come across using the NetlifyCMS hugo template.
For some reason when I submit test forms, I’m not receiving the “generically styled success message” as noted in the Netlify Forms Guide.
I’m not linking to a different page as mentioned in the Netlify Forms Guide. Here’s the end of the Contact Form I’m running.
<button type="submit" class="btn w-100 w-auto-ns raise">Submit</button>
For my “newsletter” form, I’m successfully receiving blank su…
If you can’t fix the issue, let us know and we’ll take another look.
I read both threads multiple times. I changed
action="thank-you" but the thank you message from your server doesn’t get shown upon clicking
Send message button.
@mishraka, thanks for writing in. Can you share a link to the live form that you’re having trouble with? Thanks.
@mishraka, the form on the bottom of that page attempts to submit to a php file ( https://www.trisetra.com/mail/mail.php), which won’t work because Netlify isn’t processing your PHP. Can you clarify which form you’re trying to use with Netlify forms that’s not working?
@futuregerald Thanks so much for identifying the problem! I removed the value
send_mail from the
class attribute and it works now.
Have you managed to get this sorted?? I am having exactly the same issue, can’t get my head around it… it’s so annoying, I’m assuming it is happening because its a vue app… I have read the documentation several times too to check if I missed something but no banana…
May 1, 2020, 4:02pm
hi there, can you start a new post with the details of your app and what isn’t working? that might be more effective!