When someone submits your form, you might want to redirect them to a custom page on your website instead of showing FormBackend’s default thank-you page. Even better, you can pass the submitted form values along in the URL so you can show a personalized confirmation message.
This is useful for showing order confirmations, personalizing thank-you pages, or passing data to analytics and tracking tools.
Let’s say you have a form like this:
<form action="https://www.formbackend.com/f/your-token-here" method="POST"> <label for="name">Name</label> <input type="text" id="name" name="name" required> <label for="email">Email</label> <input type="email" id="email" name="email" required> <label for="product">Product</label> <select id="product" name="product"> <option value="starter">Starter</option> <option value="pro">Pro</option> <option value="enterprise">Enterprise</option> </select> <button type="submit">Submit</button> </form>
In your FormBackend form settings, you can set a custom redirect URL that includes merge tags. Merge tags are placeholders wrapped in curly braces that get replaced with the actual submitted values.
For example, setting your redirect URL to:
https://www.mywebsite.com/thank-you?name={name}&email={email}&product={product}
When a user named “Jane” with email “jane@example.com” selects the “Pro” product and submits, they will be redirected to:
https://www.mywebsite.com/thank-you?name=Jane&email=jane%40example.com&product=pro
FormBackend automatically URL-encodes the values so special characters like @ are handled correctly.
That’s it. The next time someone submits the form, they’ll be redirected to your custom URL with the form values included.
On your thank-you page, you can read the URL parameters with JavaScript to personalize the content:
<h1>Thanks, <span id="user-name"></span>!</h1> <p>We received your interest in our <span id="selected-product"></span> plan.</p> <script> const params = new URLSearchParams(window.location.search); document.getElementById('user-name').textContent = params.get('name'); document.getElementById('selected-product').textContent = params.get('product'); </script>
This gives the user a personalized confirmation without any server-side code.
Redirects work alongside all of FormBackend’s other features. You can still receive email notifications for every submission, send auto-reply emails to the person who submitted, and forward data to integrations like Slack or Google Sheets.
For more details on redirect configuration, see the redirect after submission documentation. You can also customize the default thank-you page if you prefer not to redirect.
Learn how to redirect users to a custom URL with their submitted form values. Pass form data as URL parameters for personalized thank-you pages.