Skip to content
Lazyform
Docs menu

Getting started

Redirects and thank-you pages

Choose where visitors go after they send your form, from our hosted thank-you page to your own page.

When a plain HTML form is sent (no JavaScript), the browser leaves your page. You decide where it goes next. Forms sent with fetch don't redirect at all: you show your own message instead (see AJAX and JSON).

The order we follow

  1. The redirect field in the submission, if there is one.
  2. The thank-you URL set in the form's settings (feature: custom thank-you page).
  3. Our hosted thank-you page.

Your own thank-you page

Add a hidden redirect field with a full URL:

html
<form action="https://lazyform-api.xvelopers.com/submit" method="POST">
  <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
  <input type="hidden" name="redirect" value="https://example.com/thanks">
  <!-- your fields -->
</form>

Or set it once in the dashboard: open the form, go to Settings, and turn on Custom thank-you page. A redirect field in the form still wins, so one form can send people to different pages.

Use a different redirect per page (say, the pricing page and the contact page) and you'll know which one people came from without any analytics.

Our hosted thank-you page

With no redirect set, visitors see a simple, friendly page on our site that thanks them and links back to the page they came from. It shows a small "Powered by Lazyform" line.

Branded success page

On Pro, turn on Branded success page in the form's settings to show your own logo, title, message, accent colour and back link on that page instead. On Business you can also remove the Lazyform line.

When something goes wrong

If a plain HTML form is refused (wrong key, captcha failed, file too big…), the visitor is sent to an error page that explains what happened in plain words and has a Back to the form button. If you're the site owner, the same page shows the error code and links to how to fix it.