Skip to content
Form API

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

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

JavascriptCode
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 }
Last modified on