How to create a PDF download link with a custom keyword

  • Profile Image
    corywiley
    Asked on September 22, 2013 at 07:15 AM

    I am trying to have my email response or thank you page show a "Click Here" hyperlink that will download the PDF.

    If I use the hyperlink button and set the target to {pdf-link}, it automatically adds a / in front of it and ruins the link. Anyway around this?

  • Profile Image
    jedcadorna
    Answered on September 22, 2013 at 08:54 AM

    Hi,

    We have a workaround for this. You have to insert a link into your notification.

     

    1.

    ex. http://www.jotformpro.com/server.php?action=getSubmissionPDF&sid={id}&formID=[formID]

    replace the "[formID]" with your form id so it should look like this:

    http://www.jotformpro.com/server.php?action=getSubmissionPDF&sid={id}&formID=32572370803855

     

    2. Insert that url into your notification.

     

     

    Let me know if you need further help.

    Thanks,

  • Profile Image
    icfl
    Answered on December 15, 2014 at 01:52 PM

    One correction: 

    http://www.jotformpro.com/server.php?action=getSubmissionPDF&sid={id}&formID=[32572370803855]

    You need to remove the brackets [ ] from the actual form ID when you wrap in tag, otherwise it wont work:

    <a target="_blank" href="http://www.jotformpro.com/server.php?action=getSubmissionPDF&sid=%7Bid%7D&formID=32572370803855" rel="nofollow noopener" >Download PDF</a>

  • Profile Image
    Ben
    Answered on December 15, 2014 at 03:26 PM

    Hi,

    Yes, that is correct. I presume that the error was made when copy pasting the code, but thank you for noticing that, I will correct the error in my former colleague's response.

    Best Regards,
    Ben

  • Profile Image
    cfrances
    Answered on July 19, 2017 at 10:43 PM

    Hello, I was viewing this as a potential solution above to provide a download link. I have an order form on my web page. it saves uploads to Dropbox. It will not integrate with Paypal since it says on settings that JF does not create 2 payment types on one form. I assume this product page/ "order form' template is considered a payment form although it does not ask for payment.

     

    In any case, I was hoping to provide seeing the example above, the customer with a link that is available when I finally complete the product submission (transcription); or to provide a link to a download page. However, payment is posted upload and not immediate. it does not appear you can apply a payment via PayPal for instance (or a portal) to this link method above. Is there any suggestion how to create a private link from the submission information? I have the form at http://talkingleaves.zohosites.com/ under the "request transcript' tab. Thank you.

     I maybe should post this elsewhere, I viewed other instructions at https://www.jotform.com/help/431-How-to-Add-a-Downloadable-File-to-Your-Form#_

    I hope this is relevant, not too long winded or confusing. I really like the site builder. Thank you.

  • Profile Image
    Jim_R
    Answered on July 20, 2017 at 02:48 AM

    @cfrances - Since this thread is quite old, and to give way to the OP, I moved your post to a separate thread https://www.jotform.com/answers/1203874 

    We'll reply there shortly. 😊