How to Redirect Users After a Form Submission
A good form sends visitors somewhere reassuring after they submit. Here's how to add a post-submit redirect to a thank-you page.
Jason Warner
July 11, 2026
How to Redirect Users After a Form Submission
The moment after someone submits a form is easy to get wrong. Leave them staring at the same page and they wonder whether it worked. A clear next step — a thank-you page — reassures them and gives you a place to measure conversions.
Classic Form Posts
For a normal HTML form, configure a redirect URL on the endpoint. After a successful submission the visitor's browser is sent straight to your thank-you page:
<form action="https://api.bluejayrelay.com/f/frm_yourtoken" method="POST">
...
</form>
With a redirect URL set on the form, the browser lands on that page after submit. No JavaScript required.
Fetch-Based Submissions
If you submit with fetch for a single-page feel, the endpoint returns JSON instead of redirecting, and you decide what to show — an inline success message, a modal, or a client-side route change. Add an Accept: application/json header and handle the response yourself.
Why the Thank-You Page Matters
Beyond reassurance, a dedicated thank-you page is the natural place to fire a conversion event for analytics, offer a next action, or set expectations about response time. A visitor who sees Thanks, we will reply within a day is far happier than one left guessing.
Keep It Honest
Only redirect on a genuine success. If the submission is rejected — bad origin, rate limited, or over quota — show the error rather than a false thank-you, so visitors know to try again.
Add a thank-you redirect to any form in one field. Try Bluejay Forms free.
Build more reliable webhook workflows.
Capture, transform, and retry webhooks with full observability. Free to start, no credit card.