Contents
By default, after a user submits a form, the platform redirects them to a generic confirmation page. You can customize this behavior to send users to any page on your site.
Configure a custom redirect
- Go to the dashboard.
- Select the form you want to configure.
- Open the Redirect section.
- Enter the full URL where you want to send the user after the submission.
- Save your changes.
From that point on, every successful submission will redirect the user to the URL you configured.
Redirects with HTML forms
Redirects work automatically when you use a standard HTML form with method="POST":
<form action="https://simpleapiform.com/f/{form_id}" method="POST">
<input type="text" name="name" placeholder="Your name">
<input type="email" name="email" placeholder="Your email">
<button type="submit">Send</button>
</form>
Redirects with JavaScript
If you submit the form with JavaScript using fetch, the redirect configured in the dashboard does not apply automatically. In that case, handle the redirect from your own code:
const response = await fetch('https://simpleapiform.com/f/{form_id}', {
method: 'POST',
body: new FormData(form),
});
if (response.ok) {
window.location.href = 'https://yoursite.com/thank-you';
}
Tip: Create a thank-you page on your own site so users stay inside your experience. Avoid redirecting to external domains that may create confusion.