JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Add a close button on thank you pageAsked by MESAR on February 26, 2014 at 09:24 AM
Im trying to add a button that close current page (thank page after submit) but it wont let me do it.
How can i do it ?
you can use the wizard it is encircled in the image :
this is a short youtube how-to video
the Default Thank You Page is the default thank you page used in all JotForm forms by default.
here is the short form example of the thak you page
There's no way to edit it unless you switch to another thank you option
custom thank you page
i choose the Thank you message option and i changed the message, and i could even swith to html source but the code i enter there wont stay
Kindly let us know if you need more assistance.
you have clicked save I presume on the uper left of the Jotform?
Possible you could try go and clean the Jotform inside-cache
You can use the following steps to clear your form cache yourself:
(1) Go to My Account
(2) Go to Settings
(3) Last, click on Clear Cache and a pop-up will appear saying " All Caches are Cleared! " then click okay and you are done!
If you are still having trouble beyond this, you may also want to try Clearing your Browser Cache in conjunction with this, or change to other Browser since it will aid in correcting the problems associated with.
Here is the help article where I found this info:
Hope this solves your situation !
i just need to add a button that close the thank you page (this actual page is opened in another tab)
if i understand, the only way is to create my own page ?
If you actually want to close the browser window, yes, as this script is not accepted by our HTML editor.
You can paste this into your html document:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<p align="center">Thank you for your submission!</p>
You can test the result here:
Then you can use the previously described "custom url" option, to link your form to your html page.
And you can use your html editor to customize contents or formatting.
If you need further assistance let us know please.
the link u sent me doesnt actually work :(
the browser doesnt close when i hit the close window button
Let us know should you have further questions. Thanks!
Im with chrome and i just tried it again and still doesnt close the tab
You're right, I just got a message on the Chrome browser that is similar with Firefox.
"Scripts may close only the windows that were opened by it."
ok so if i make my own page with my own script, where do i put it and what is the url i have to put in the Custom URL choice ?
If the script is similar to the button element shared by Carina, then it goes where you want the button to appear on your page.
Use the Thank you page URL redirect method to implement your solution, and use the link to the page you just created with the close button.
Why not create the page, then let us know and we shall advice?
Looking forward to your response.
i found the way to make it work ono google chrome
i did this
Merci, demande envoyé!
<input type="button" value="Revenir au site" onClick="window.open('', '_self', ''); window.close();">
everything works fine now :D