# Success / Thank You Page

{% hint style="info" %}
Tip: To use your own thank you page, visit [redirection](https://docs.web3forms.com/getting-started/customizations/redirection "mention") page.&#x20;
{% endhint %}

<figure><img src="https://4078640192-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPUC7SfrK7-rhtC1UKR%2Fuploads%2FMlps9UcrYoZJgiEsIOML%2FCleanShot%202024-02-02%20at%2013.16.55%402x.png?alt=media&#x26;token=ab2200fb-28ca-4ca9-b71e-4aba34d87cb6" alt="" width="375"><figcaption><p>Default Success Page</p></figcaption></figure>

### Fix Stale Form Data after clicking "Go Back"

You might have noticed, after successful form submission, the user will show success page as shown above. However, once user clicked the "Go Back" button, the contact form fileds will still show the form data. it will not clear. In that case, make sure you add the following code to fix that.&#x20;

```html
<script>
    window.onload = function() {
        // Reset the form fields when the page loads
        document.getElementById("form").reset();
    };
</script>
```

### Redirect to your your own Website / URL

To redirect the success page to your own website or another different URL, please use the custom redirection. See this guide [redirection](https://docs.web3forms.com/getting-started/customizations/redirection "mention")for more details.&#x20;

### Show Success Message on the Same Page (Do not redirect)

To skip redirection after the contact form submission and instead, if you want to show a success message on the same page, you can use the Javascript Method or similar. See [html-and-javascript](https://docs.web3forms.com/how-to-guides/html-and-javascript "mention")page for sample code.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.web3forms.com/getting-started/customizations/success-thank-you-page.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
