FormsLite.io Docs
  • Introduction
  • Getting Started
    • Setup
    • Settings
      • Custom Subject
      • Success Page
      • Custom Redirect
      • Captcha and Spam Protection
        • Honeypot
        • hCaptcha
        • Report Spam
      • Custom Reply-to Email
      • Custom From Name
    • Plus Features
      • Add CC Emails
      • Autoresponder
      • Notion Database Integration
      • Webhooks
      • Domain Whitelisting
    • Examples
  • Guides
    • HTML Only
    • HTML + JavaScript
    • Alpine.js
    • Svelte
    • Vue.js
    • React
Powered by GitBook
On this page
  1. Getting Started
  2. Settings

Custom Redirect

Customize the success redirection to your website after form submission.

Redirect Option

This option can only be used if you are using the default HTML form without JavaScript. If you are using JavaScript or any other front-end technology, please use the appropriate redirection method instead. See the JavaScript Example.

By default, FormsLite.io redirects to our website after form submission. However, if you want to redirect to a custom URL on your website or another website, you can use the redirect option. You can set any URL you want. Make sure it is an absolute URL with https:// and not a relative URL.

Examples

<!-- Default URL -->
<input type="hidden" name="redirect" value="https://formslite.io/success">

<!-- Custom URL -->
<input type="hidden" name="redirect" value="https://yourwebsite.com/thanks.html">

<!-- Redirect to another website -->
<input type="hidden" name="redirect" value="https://partnerwebsite.com/someaction/">

Important: Ensure you provide the full URL as the value instead of a relative URL.

<!-- ❌ Wrong. This won't work -->
<input type="hidden" name="redirect" value="/thanks.html">

<!-- ✅ Correct. Full URL with https:// -->
<input type="hidden" name="redirect" value="https://yourwebsite.com/thanks.html">

The input type should be hidden and the name should be redirect.

PreviousSuccess PageNextCaptcha and Spam Protection

Last updated 11 months ago