formrhythmDocs

Custom redirects

Send visitors to your own thank-you page after they submit.

By default, visitors land on a FormRhythm success page after a regular form post. On paid plans you can send them to your own page instead.

Set a redirect

  1. Open the form in your dashboard.
  2. Go to Form settings.
  3. Enter a full URL starting with https:// in Custom redirect URL.

JavaScript submissions

JavaScript submissions are not redirected. Instead, the URL is returned as redirectUrl in the JSON response, so you can navigate there yourself:

const response = await fetch(form.action, {
  method: 'POST',
  body: new FormData(form),
  headers: { Accept: 'application/json' },
});

if (response.ok) {
  const { redirectUrl } = await response.json();
  window.location.href = redirectUrl;
}

On this page