> ## 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.

<Steps>
  <Step title="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.

    <Frame>
      <img src="https://mintcdn.com/formbase/gA9p3Ks8sQ18Mo1W/images/form-settings-full.png?fit=max&auto=format&n=gA9p3Ks8sQ18Mo1W&q=85&s=37edf73230b409649f60757bba41ea50" alt="Form settings with return URL field" width="1280" height="965" data-path="images/form-settings-full.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/formbase/gA9p3Ks8sQ18Mo1W/images/success-page.png?fit=max&auto=format&n=gA9p3Ks8sQ18Mo1W&q=85&s=de6c6f94e7551095541492b14898b599" alt="Built-in success page" width="1280" height="720" data-path="images/success-page.png" />
    </Frame>
  </Step>

  <Step title="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.
  </Step>
</Steps>

<Callout type="note">
  Browser requests receive a `303` redirect. Treat it as success when using client-side fetch.
</Callout>
