> ## Documentation Index
> Fetch the complete documentation index at: https://docs.formbase.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Basic Redirect Setup

> Send users to a thank-you page after submission.

Formbase uses a built-in success page for browser submissions. You can add a return URL in the dashboard so users can navigate back to your site, or you can handle redirects yourself with JavaScript.

Choose the approach that fits your UX.

**1. Option 1: Use the built-in success page**

In the form settings, set a return URL. After submission, Formbase displays a success page with a "Return" button pointing to that URL.

![Form settings with return URL field](https://mintcdn.com/formbase/gA9p3Ks8sQ18Mo1W/images/form-settings-full.png?fit=max\&auto=format\&n=gA9p3Ks8sQ18Mo1W\&q=85\&s=37edf73230b409649f60757bba41ea50)

![Built-in success page](https://mintcdn.com/formbase/gA9p3Ks8sQ18Mo1W/images/success-page.png?fit=max\&auto=format\&n=gA9p3Ks8sQ18Mo1W\&q=85\&s=de6c6f94e7551095541492b14898b599)

**2. Option 2: Redirect manually**

Intercept the submission with JavaScript and send users to your own thank-you page.

```js theme={null}
const response = await fetch('https://formbase.dev/s/YOUR_FORM_ID', {
  method: 'POST',
  body: new FormData(formElement),
  redirect: 'manual',
});

if (response.status === 303 || response.ok) {
  window.location.href = '/thanks';
}
```

This gives you full control over the post-submit experience.

Browser requests receive a `303` redirect. Treat it as success when using client-side fetch.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.