Hi-
I am successfully generating PDF's using TCPDF, but the form gets stuck once the pdf is generated. It remains grayed out and behaves as if tcpdf is still working to generate the form. I cannot redirect. The only way to get out of it is to refresh the page manually. Is there something I am missing?
I am successfully generating PDF's using TCPDF, but the form gets stuck once the pdf is generated. It remains grayed out and behaves as if tcpdf is still working to generate the form. I cannot redirect. The only way to get out of it is to refresh the page manually. Is there something I am missing?
your TCPDF is set to save, download or both ? if download is involved then this is normal, the download option will terminate any future actions!
Yes, download is involved. How can I expect a user to know the site is not broken and that they have to manually refresh the page to get out of that state? That does not seem to be a very user friendly situation. There has to be a way to break out of this limbo and get the user to an active page, be it the one they are already on or a new one.
You can just do it the way it's done in most websites:
1- at the form "end_page", redirect "with a delay" to another "standalone" page where you have the TCPDF with the download, that will open the download prompt after the user has landed to the "end_page"
Or
2- add a button in the end_page and setup the link behavior, point the link to the standalone page so that when the user clicks the button, the download starts!
1- at the form "end_page", redirect "with a delay" to another "standalone" page where you have the TCPDF with the download, that will open the download prompt after the user has landed to the "end_page"
Or
2- add a button in the end_page and setup the link behavior, point the link to the standalone page so that when the user clicks the button, the download starts!
You need to login to be able to post a reply.