# Redirect after submit

> Send visitors to your own thank-you page with a hidden redirect field or a dashboard setting.

Source: https://docs.formclick.io/html-forms/redirects

Instead of the Formclick confirmation page, you can send people to any page you like, for example a thank-you page that fires your analytics conversion.

_Animation: after submitting on /contact the visitor is redirected (302) to the site’s own /thanks page._

## Using a hidden field

```html
<form action="https://api.formclick.io/submit" method="POST">
  <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
  <input type="hidden" name="redirect" value="https://yourwebsite.com/thanks.html">
  ...
</form>

<!-- Handles submit, file upload, loading state and success/error messages. -->
<script src="https://cdn.formclick.io/formclick.min.js"></script>
```

Plain HTML forms get a `302` redirect. With `formclick.min.js` or `fetch` the JSON response contains `redirect_url`, and the script navigates there for you.

## A default redirect for the form

A form can also have a default redirect URL, used for every submission that does not send its own `redirect` field, so you can change it without editing your site. Set it with the [MCP](https://docs.formclick.io/mcp/mcp-tools) `update_form_settings` or `create_html_form` tools.

## Rules

| Rule | Details |
| --- | --- |
| Full URL | Must be an absolute `http://` or `https://` URL, up to 2,000 characters. `/thanks` on its own is ignored. |
| Free plan | Redirects must stay on the same website the form was submitted from (subdomains and `www.` count as the same site). |
| Paid plans | Redirect to any domain, e.g. a booking page or a separate landing site. |
| Invalid redirect | Ignored. The submission still succeeds and the form’s default redirect or the normal confirmation is used. |

> **Tip:** Same-site redirects on the Free plan stop your form being misused to bounce visitors to other websites.
