Menu

Redirect Users to a Custom 'Thank You' Page After Form Submission

After a user submits a form, redirecting them to a custom “Thank You” page provides a much better experience than leaving them on a generic confirmation screen. It confirms that their submission was received and allows you to guide them to the next step, whether that’s exploring more content, joining a mailing list, or simply showing your appreciation.

With NoCodeSubmit, this is incredibly simple to implement using the _next hidden field.

How to Use the _next Field

To redirect your users, add a hidden input to your form with name="_next" and set its value to the URL of the page you want them to land on.

Important: The URL must be absolute (e.g., https://yourdomain.com/thank-you.html). Relative paths are not supported.

Here’s how to add it to your form:

<form action="https://api.nocodesubmit.com/api/v1/email/[email protected]" method="POST">
  <!-- Redirect to your custom success page -->
  <input type="hidden" name="_next" value="https://yourwebsite.com/thank-you.html">

  <!-- Your form fields -->
  <label for="email">Email:</label>
  <input type="email" id="email" name="email" required>

  <label for="message">Message:</label>
  <textarea id="message" name="message" required></textarea>

  <button type="submit">Send</button>
</form>

Why Use a “Thank You” Page?

  1. Clear Confirmation: It immediately tells users their message went through successfully.
  2. Brand Consistency: The page can be styled to match the rest of your site, providing a seamless user journey.
  3. Next Steps: You can use the page to suggest other actions, like:
    • “Check out our latest blog posts.”
    • “Follow us on social media.”
    • “Download our free e-book.”
  4. Analytics Tracking: It’s an easy way to track form submission events (conversions) in your analytics tools.

By implementing this simple feature, you can make your forms more professional and user-friendly.