Site icon JD Bots

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:

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:

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:

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 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.

n8n received the submission.

Step 4: Publish and Try the Live Form

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

Production URL

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 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

Related

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

Exit mobile version