Skip to main content
0 reactions

How to Redirect After an n8n Form Submission

Card titled Redirect After an n8n Form Submission, labelled n8n how-to, forms, with a form icon linked to a return arrow and three notes: Options, Form Response; Respond With, Redirect URL; and URL to Redirect to.

When someone submits an n8n form, n8n shows its own page: Form Submitted, “Your response has been recorded”. You can send people to a page of your own instead, such as a thank-you page on your website, with one setting on the form’s trigger.

In this guide you build a small waitlist form, set it to redirect, and try it before and after publishing.

Step 1: Build a Small Form

Create a new workflow named Waitlist and choose On form submission as its first step. Type a Form Title and a Form Description, and add one form element, Email, of type Email, with Required Field turned on:

The On form submission node in n8n with the test URL ending in waitlist, Form Title Join the waitlist, a one-line description and a required Email element of type Email.
A one-field waitlist form.

Step 2: Choose Redirect URL

Scroll down to Options and click Add option. Choose Form Response, then open its Respond With list:

The Respond With list of the Form Response option open, with two choices: Form Submitted Text, show a response text to the user, and Redirect URL, redirect the user to a URL.
Form Response › Respond With has two choices.

Form Submitted Text, the default, shows n8n’s own page. Choose Redirect URL, and type the page to send people to in URL to Redirect to. It takes a full web address, starting with https://. This guide uses https://example.com/, an address kept for examples; type your own thank-you page.

Add the Form Path option too, with waitlist, so the form’s address ends in /form/waitlist:

The trigger options with Form Path waitlist and Form Response set to Respond With Redirect URL, with https://example.com/ in URL to Redirect to.
Redirect URL, with the page to send visitors to.

Step 3: Test the Redirect

Close the node and click Execute workflow. n8n opens the test version of the form in a new tab. Type an email address and click Submit:

The test version of the Join the waitlist form, with sam@example.com typed in the Email field above the Submit button.
The test form, ready to submit.

Instead of n8n’s Form Submitted page, the browser opens https://example.com/. Back in n8n, the trigger is green: it received the answer.

The On form submission node on the n8n canvas with a green border and check mark, passing on 1 item.
n8n received the submission.

Step 4: Publish and Try the Live Form

Publish the workflow and open the form at its production address:

Production URLPlain text
http://localhost:5678/form/waitlist

Submit it once more. The published form sends people to the same page.

Clean Up

Unpublish the workflow so the form stops taking answers, then archive and delete it from its ⋯ menu.

FAQ

How do I redirect at the end of a form with several pages?

End the form with an n8n Form node set to Form Ending, and set its On n8n Form Submission to Redirect to URL. n8n’s Form node docs (opens in a new tab) describe the Form Ending page.

Can I show my own message instead of a redirect?

Yes. Keep Respond With on Form Submitted Text and type your message in Text to Show.

Does the redirect work on the test URL?

Yes. The test form and the published form both send people to the redirect page.

Conclusion

To send visitors to your own page after an n8n form, add the trigger’s Form Response option, choose Redirect URL and type the full address. For a form with several pages, set the redirect on its Form Ending instead.

Additional Resources

n8n and other names mentioned are trademarks of their respective owners. JD Bots isn’t affiliated with or endorsed by n8n GmbH.

0 comments