Customizing your Thank You page can create a more personalized experience for your form respondents. Adding an auto-redirect feature ensures that respondents are seamlessly guided to the next step after submitting the form. Whether it’s redirecting them to a specific webpage, another form, or back to the original form, this automation streamlines the user experience.
To create an auto-redirecting Thank You page
- Paste the following code in your text editor.
<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 = 7; // The delay in seconds before redirecting.
var redirect = "https://www.jotform.com"; // The redirection's landing page.
function countDown() {
if(count >= 0){
document.getElementById("timer").innerHTML = count--;
setTimeout("countDown()", 1000);
}else{
window.location.href = redirect;
}
}
countDown();<style>
mark.has-inline-color.has-vivid-red-color {
color: #b00000;
}
</style>- Customize the values in red to your preferences.
- Save it as an HTML file (e.g., thankyou.html) and upload it to your server.
- Get the link to your HTML file and set it as your form’s Thank You page. See Redirecting Users to a Different Page for more information.
Here’s a demo form to see what it looks like.


Send Comment:
41 Comments:
October 20, 2025
The answer was not on this page, but figured it out. When using the one question per page format, you must change the redirect page at the bottom of the form instead of on the settings page. Hope this information is helpful to someone.
October 20, 2025
This is not working for one of our pages...help!
March 1, 2024
good info
June 9, 2023
Nice
February 21, 2021
Thanks!
January 20, 2021
How can I make special Link with the Unbounce thank you page
December 5, 2020
hello
November 28, 2020
wow
June 20, 2020
My form is on an Iframe, after the counter redirects to a new page, how can I redirect to the form insithe the iframe?
July 9, 2019
welcome
March 11, 2019
Thank you page!
November 27, 2018
I had tried a bunch but not luck until I got to this site. I just wish that it will have some kind of validation code to it, because for emails are required to do this. Thanks for the script!
November 12, 2018
I cut and pasted your sample code into the thank you HTML box. When I executed the form all I got was the thank you text,. No redirect, just the balance of the HTML code,
October 4, 2018
Sorry -- this makes very little sense to me -- because I don't have to do any code when working in Muse and don't work with any text editor, I am not sure how this gets accomplished. It seems like it should all happen on the jot form page. I may have to think up my own work-around
September 26, 2018
We are having a Thanks you page designed and need to make some changes to the layout, I tried this option but the lead filled is not leading to my mail id
September 7, 2018
when im in notepad, how do i save it as an html file?
June 21, 2018
Pastie Code is NOT valid and it's in spanish...
April 22, 2018
hullo there
January 8, 2018
hey
January 8, 2018
good
April 11, 2017
thanks
August 15, 2016
Hello Jotform,
hoping you can help me here... is there any way we can have it come up with the thank you message (that looks nice, not just plain text) and then it auto -redirects to our webpage?
thanks
Annie.
August 7, 2016
I'm trying to do this on a Conditional Thank You page, in other words, one where the user is diverted based on a condition on the page, and every time I try to save the Javascript, it disappears. Is this no longer possible?
April 3, 2016
my webpage will not redirect, i thouhght I did it right..:( dev.carolinasuccessteam.com the form in the middle of the page...THANKS!
January 7, 2016
Survey responses are submitted when a respondent clicks the Done button on the last page of your survey—respondents don t need to click the Done button on the page with your Custom Thank You to submit their responses.