Create a Custom Thank You Page with Auto-Redirect

April 21, 2022

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>
</div>
<script type="text/javascript">
	var count = 5;
	var redirect = "https://www.jotform.com";
	
	function countDown() {
		if(count >= 0){
			document.getElementById("timer").innerHTML = count--;
			setTimeout("countDown()", 1000);
		}else{
			window.location.href = redirect;
		}
	}
	countDown();
</script>
  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-redirect-to-external-link-min.png

Demo: https://www.jotform.com/220991451611048

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: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

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

Comments:

  • hi
  • hi
  • Manu
  • NXcontact
  • Avinash kumar
  • m
  • manager.event.center
  • ravi
  • Chuxin Liang
  • Mellow
  • Thosbryan
  • giacosmom
  • MGSI
  • jeffwatson
  • jrkconsult
  • dennis
  • sadasd
  • adminuoem
  • Kevin Robertson
  • UBTMarketing
  • ksesock
  • carolinasuccessteam
  • Free Games Download
  • ashwini
  • AmSteve
  • akbar
  • Pharme50
  • Pharma827
  • suganya
  • sriraga
  • padmavathi
  • Arun thakur
  • klaed
  • FUNDAORIGEN
  • uniqueallianceva
  • jaures
  • جوري
  • tehnath
  • magicjack335