What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

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.


  • Profile Image

    Problem with Save to PDF option on Thank You message

    Asked by jamesnicklin1 on October 09, 2013 at 03:36 AM

    Hi,

     

    I have quite a few forms which produce a customised Thank You message when users upload files using the web forms. On this Thank You message I would like to add a "Save this page to PDF" link which users can click to save the web page. I have been using some simple HTML code to do this (for example, <a target="_blank" href="http://pdfcrowd.com/url_to_pdf/" rel="nofollow">Convert this page to a PDF</a> or <a target="_blank" href="http://www.web2pdfconvert.com/convert" rel="nofollow">Save to PDF</a>), however whenever i actually click on the link in the form, the produced PDF says "Form ID did not match. Form ID: Form Name: 32484816482966", this has been the same with both of the web2PDF links so I assume it is something going wrong on the Jotform side, what is the cause of this? Can you recommend some simple HTML code which will allow me to save the Thank You web page as an image or a PDF?

     

    thanks,

    James Nicklin

    Page URL:
    http://form.jotformpro.com/jsform/32484816482966

    Screenshot
    Thank You message problem message web forms JotForm name
  • Profile Image
    JotForm Support

    Answered by EltonCris on October 09, 2013 at 05:44 AM

    Hi,

    The thank you message is a server side generated script, it can only be used by the time after the form is submitted. Generating a PDF or any image by reading its HTML source code will read the invalid page/form ID. Example: http://submit.jotformpro.com/submit/32484816482966/. And the fact the "pdfcrowd" only reads an HTML source code, it can't generate exactly as the data seen on the screen.

    Jotform has an available PDF link which automatically convert submissions into a PDF file. Just simply add it to your thank you page by clicking "PDF Link" field on the form fields menu.

    Hope this helps. Regards!

  • Profile Image

    Answered by jamesnicklin1 on October 10, 2013 at 11:34 AM

    Hi,

    Thanks for that response. I have now added the PDF link to that same form, however instead of being a clickable link the web address (in this case http://submit.jotformpro.com/server.php?action=getSubmissionPDF&sid=247227444432924047&) only comes out as plain text instead of as a clickable hyperlink, this is in Firefox v24.0, Internet Explorer 8 and Chrome as well. How do i make this into a hyperlink? I have tried putting in the html <a target="_blank" href="{pdf-link}">Save this page as PDF</a>  but that does not work, I just get a message saying 404 Form Not Found.

     

    thanks,

    James

  • Profile Image
    JotForm Support

    Answered by guilledutra on October 10, 2013 at 12:25 PM

    Hi,

    Could you try by putting in the html this anchor code:

    <a target="_blank" href="http://www.jotformpro.com/server.php?action=getSubmissionPDF&sid={id}&formID=32484816482966">Save this page as PDF</a>

    where 32484816482966  corresponds to your form ID, you can do the same with other form by replacing that number with the corresponding to your form ID.

    Hope it helps

    Please let us know if you need further assistance

    Thanks

  • Profile Image
    JotForm Support

    Answered by EltonCris on October 10, 2013 at 12:37 PM

    Hi James,

    You may also want to try this:

    <a target="_blank" href="javascript:void window.open('{pdf-link}'); return false;">PDF Download</a>

    Thanks!

  • Profile Image

    Answered by jamesnicklin1 on October 10, 2013 at 03:10 PM

    Hi,

    Many thanks to you both, that last bit of code works great EltonCris, guilledutra I'm sure yours works as well, however it would be a bit tedious to go through all my forms and manually put in the form ID, whereas the other one (i think?) allows me to paste the same code into all my forms,

    thanks again,

    James