# How to get generic netfily thank-you page when form is submitted on my website

**URL:** <https://answers.netlify.com/t/how-to-get-generic-netfily-thank-you-page-when-form-is-submitted-on-my-website/82716>\
**Category:** Support\
**Tags:** netlify-forms, netlify-newbie\
**Created:** [January 8, 2023, 8:41am UTC](https://answers.netlify.com/t/how-to-get-generic-netfily-thank-you-page-when-form-is-submitted-on-my-website/82716 "2023-01-08T08:41:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![savvYazzy](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/savvyazzy/32/43550_2.png) [@savvYazzy](https://answers.netlify.com/u/savvYazzy)\
**Post date:** [January 8, 2023, 8:41am UTC](https://answers.netlify.com/t/how-to-get-generic-netfily-thank-you-page-when-form-is-submitted-on-my-website/82716/1 "2023-01-08T08:41:52Z")

</div>

I know this may be a simple fix but I just want to know what to put in my action or method attributes in my form to get this. I gave up on trying to get my custom page issues resolved and just want this simple fix done asap. Please help if possible.

this is my current code… I know I have to get rid of mail.php so you can ignore that, but is there anything I need to put instead?

I should also mention the form submits successfully its just the success message I’m having issues with

````auto
                                <!-- Start Contact Form Box -->
                                <div class="contact-form-box">
                                    <form id="contact-form" class="default-form contact-form" action="mail.php" method="post" data-netlify="true">
                                        <div class="row mb-n6">
                                            <div class="col-xl-6 mb-6">
                                                <div class="default-form-group">
                                                    <input name="name" type="text" placeholder="Name" required>
                                                </div>
                                            </div>
                                            <div class="col-xl-6 mb-6">
                                                <div class="default-form-group">
                                                    <input name="email" type="email" placeholder="Email" required>
                                                </div>
                                            </div>
                                            <div class="col-xl-6 mb-6">
                                                <div class="default-form-group">
                                                    <input name="phone" type="tel" placeholder="Phone" required>
                                                </div>
                                            </div>
                                            <div class="col-xl-6 mb-6">
                                                <div class="default-form-group">
                                                    <input name="subject" type="text" placeholder="Subject" required>
                                                </div>
                                            </div>
                                            <div class="col-xl-12 mb-6">
                                                <div class="default-form-group">
                                                    <textarea name="message" placeholder="Comment" required></textarea>
                                                </div>
                                            </div>
                                            <div class="col-12 mb-6">
                                                <div class="default-form-group tex-center">
                                                    <button type="submit" class="btn btn-lg btn-outline-one">Submit Message</button>
                                                </div>
                                            </div>
                                            <p class="form-messege"></p>
                                        </div>
                                    </form>
                                </div>
                                <!-- End Contact Form Box -->```
````

---

<div class="post-metadata">

**Author:** ![nathanmartin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathanmartin/32/30845_2.png) [@nathanmartin](https://answers.netlify.com/u/nathanmartin)\
**Post date:** [January 8, 2023, 9:35am UTC](https://answers.netlify.com/t/how-to-get-generic-netfily-thank-you-page-when-form-is-submitted-on-my-website/82716/2 "2023-01-08T09:35:38Z")

</div>

@savvYazzy Setting your own custom success page is explained in the documentation here:

> **[Forms setup](https://docs.netlify.com/forms/setup/#custom-success-page)**
>
> Use built-in form handling to simplify adding and managing forms for your project. There’s no need to make an API call or include extra form handling code.

So…

1. Make a page at whatever location you would like, for example `/contact-success`
2. Change the form `action` from `mail.php` to the path of that page, `action="/contact-success"`

---

<div class="post-metadata">

**Author:** ![savvYazzy](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/savvyazzy/32/43550_2.png) [@savvYazzy](https://answers.netlify.com/u/savvYazzy)\
**Post date:** [January 8, 2023, 9:48am UTC](https://answers.netlify.com/t/how-to-get-generic-netfily-thank-you-page-when-form-is-submitted-on-my-website/82716/3 "2023-01-08T09:48:47Z")

</div>

as I just mentioned in my original post. I don’t want a custom page just the generic thank you page from netfily. I did not ask for support for a custom one.

i just want to know what I need to remove or add in my existing form to make the generic thank you page possible. thanks

---

<div class="post-metadata">

**Author:** ![nathanmartin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathanmartin/32/30845_2.png) [@nathanmartin](https://answers.netlify.com/u/nathanmartin)\
**Post date:** [January 8, 2023, 9:50am UTC](https://answers.netlify.com/t/how-to-get-generic-netfily-thank-you-page-when-form-is-submitted-on-my-website/82716/4 "2023-01-08T09:50:53Z")

</div>

> [@savvYazzy](#):
>
> I did not ask for support for a custom one.

That’s fine, but do you still have the `action="mail.php"` in your code?

Because if you do, you’re telling Netlify to navigate there.

Remove the `action`.

* * *

There’s also no need to get snitchy either, as I’m just a community member and trying to help.  
You aren’t owed support and there’s nothing preventing you from reading the documentation and understanding it yourself.

---

<div class="post-metadata">

**Author:** ![savvYazzy](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/savvyazzy/32/43550_2.png) [@savvYazzy](https://answers.netlify.com/u/savvYazzy)\
**Post date:** [January 8, 2023, 10:07am UTC](https://answers.netlify.com/t/how-to-get-generic-netfily-thank-you-page-when-form-is-submitted-on-my-website/82716/5 "2023-01-08T10:07:06Z")

</div>

Thanks, I’ll try that.

I believe you misread my tone as I was just trying to clarify what I was looking for. I have no reason no be ‘snitchy’ on a support form. I did read the documentation and didn’t find my answers which is why I resorted to starting a topic, which I’ve seen many others start but didn’t see a clear solution… thanks anyway

---

<div class="post-metadata">

**Author:** ![savvYazzy](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/savvyazzy/32/43550_2.png) [@savvYazzy](https://answers.netlify.com/u/savvYazzy)\
**Post date:** [January 8, 2023, 10:14am UTC](https://answers.netlify.com/t/how-to-get-generic-netfily-thank-you-page-when-form-is-submitted-on-my-website/82716/6 "2023-01-08T10:14:27Z")

</div>

removing the action did not work. it now is just blank

---

<div class="post-metadata">

**Author:** ![nathanmartin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathanmartin/32/30845_2.png) [@nathanmartin](https://answers.netlify.com/u/nathanmartin)\
**Post date:** [January 8, 2023, 10:20am UTC](https://answers.netlify.com/t/how-to-get-generic-netfily-thank-you-page-when-form-is-submitted-on-my-website/82716/7 "2023-01-08T10:20:21Z")

</div>

> [@savvYazzy](#):
>
> it now is just blank

Can you clarify what you mean by “it now is just blank”?

What specifically is blank? The action tag, or the page that it is redirecting to?

Are you able to provide a link to your test page?

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [January 8, 2023, 10:31am UTC](https://answers.netlify.com/t/how-to-get-generic-netfily-thank-you-page-when-form-is-submitted-on-my-website/82716/8 "2023-01-08T10:31:51Z")

</div>

This is a duplicate (or continuation) of:

> [@Forms Show HTML doctype code after submission](https://answers.netlify.com/t/80946/):
>
> I want to know how to remove this message once a submission is made in my form. I see the submission is successful in my forms tab I just don’t know how to remove this code.

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [January 8, 2023, 10:31am UTC](https://answers.netlify.com/t/how-to-get-generic-netfily-thank-you-page-when-form-is-submitted-on-my-website/82716/9 "2023-01-08T10:31:56Z")

</div>


