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.
Thank you page with a link that downloads my PDF fileAsked by nexigensales on June 01, 2016 at 10:42 AM
I have a form in a LightBox. I want it set up so that when someone fills out the form and clicks submit, it will take them to a thank you page, but that thank you page also downloads a PDF. I don't want it as a download link though. I have tried using
so that it opens it in a new tab, but every time I save the html, it strips it. Is there a workaround to make this happen? I was thinking about using an onLoad but I believe it would also strip that.
The only workaround is to apply your custom codes into your form source code. http://www.jotform.com/help/104-How-to-Download-a-Source-Code-of-your-Form
However, if you only want to display a PDF in your form, you can use these widgets.
If you need further assistance, let us know.
The source code still doesn't let me change anything on the thank you page, it is for the form itself.
You have to download your form source code and edit/insert any codes on the HTML file. The downloaded file contains the HTML file of your form, the css and js files. You have to edit the HTML file if you want to make any changes on your form.
You can't make any changes on the source code box shown in the publish wizard. It is only meant for copying, not editing.
I just realized that you are referring to your form's thank you page. I would suggest
I'm also trying to automatically download a pdf when the user's redirected to a custom thank you page after filling out a JotForm. Doing this right now with a document.ready function that sets a timeout that calls window.open. The issue though is that Chrome blocks the download as a popup. Any idea how to do this without the download being blocked?
Your question is moved to a separate thread and shall be addressed there shortly.