Create a Custom Thank you page with Auto-redirect

August 27, 2021

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 to your preferences (text in red).

<div style="text-align:center;">
<h1>Thank you!</h1>
<p>Your submission has been received.</p>
<span id="timer"></span></div>
<script type="text/javascript">
var count = 5;
var redirect = "";
function countDown(){
var timer = document.getElementById("timer");
if(count > 0){
timer.innerHTML = "This page will redirect in "+count+" seconds.";
setTimeout("countDown()", 1000);
window.location.href = redirect;

You can also get the code here:

3. Save it as an HTML file, e.g. thankyou.html, and upload it to your server.

4. Get the link of the HTML file and set it as your form’s Thank You Page.

Go to Settings > Thank You PageRedirect to an external link after submission then enter the link.


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.