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 = "https://www.jotform.com";
function countDown(){
var timer = document.getElementById("timer");
if(count > 0){
count--;
timer.innerHTML = "This page will redirect in "+count+" seconds.";
setTimeout("countDown()", 1000);
}else{
window.location.href = redirect;
}
}
countDown();
</script>

You can also get the code here: https://pastebin.com/raw/UWBPhz3m

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.

Demo: https://form.jotform.com/91607224171956

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: