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

Success Page

PreviousCustom SubjectNextCustom Redirect

Last updated 11 months ago

You can customize the success or thank you page as you like. See the options below:

Default Success Page

Fix Stale Form Data after Clicking "Go Back"

After a successful form submission, the user will see a success page. However, if the user clicks the "Go Back" button, the contact form fields will still display the form data. To prevent this, add the following code to reset the form fields:

<script>
    window.onload = function() {
        // Reset the form fields when the page loads
        document.getElementById("form").reset();
    };
</script>

Redirect to Your Own Website / URL

To redirect the success page to your own website or another URL, use custom redirection. See the Custom Redirection Guide for more details.

Show Success Message on the Same Page (Do Not Redirect)

To skip redirection after form submission and show a success message on the same page, you can use a JavaScript method. See the Guide for sample code.

Tip: To use your own thank you page, visit the Page.

HTML & JavaScript
Custom Redirect