# Custom redirect

By default, PaceForms shows a generic thank-you page after submission. Override this
with a hidden field or via AJAX.

## Hidden `_redirect` field

```html
<form action="https://app.paceforms.com/api/f/NR-6Ww88ET" method="POST">
  <input
    type="hidden"
    name="_redirect"
    value="https://yoursite.com/thank-you"
  />
  <input type="email" name="email" required />
  <button type="submit">Subscribe</button>
</form>
```

## AJAX — handle the redirect yourself

When submitting via fetch, no redirect happens — you control what shows next based on
the response.

```js
const res = await fetch('https://app.paceforms.com/api/f/NR-6Ww88ET', {
  method: 'POST',
  body: formData,
});
if (res.ok) {
  window.location.href = '/thank-you';  // your own redirect
}
```
