Create a Custom Thank You Page with Auto-Redirect

January 25, 2023

If you want your form to redirect to another website or back to the form after submission with a countdown timer, here’s how:

  1. Open your favorite text editor such as Notepad.
  2. Paste the following code and modify the values (text in red) to your preferences:
<div style="text-align:center;">
	<h1>Thank you!</h1>
	<p>Your submission has been received.</p>
	<p>This page will redirect in <span id="timer"></span>s.</p>
<script type="text/javascript">
	var count = 5;
	var redirect = "";
	function countDown() {
		if(count >= 0){
			document.getElementById("timer").innerHTML = count--;
			setTimeout("countDown()", 1000);
			window.location.href = redirect;
  1. Save it as an HTML file, e.g. thankyou.html, and upload it to your server.
  2. Get the link of the HTML file and set it as your form’s Thank You Page.
Form Builder Thank You Page Settings


Check out the guide on Redirecting Users to a Different Page to learn more.

Was this guide helpful?
Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum:

Contact Jotform Support:

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.