How to add a button to download a PDF document?

  • Profile Image
    jtorn
    Asked on February 09, 2021 at 11:04 AM

    I have created an order form. I want to add a part of the order form so people can download a PDF document (a guide) to determine what exactly it is that you need to order.

    I have a disclaimer at the beginning of my form advising people to download the guide first before submitting an order.

    Is there a way just to add a button below the disclaimer which people can push in order to download a PDF guide (note this is NOT a copy of the form itself, but a separate file)?

    All I can find is how to insert a hyperlink referencing to an (external) source.


    Thanks

  • Profile Image
    Eduardo_H
    Answered on February 09, 2021 at 01:11 PM

    Hello @jtorn

    It's not possible to upload / host files to Jotform for public download. You'll need to use a cloud service like Google Drive or Dropbox. For more details, kindly refer to this documentation:

    Guide: How-to-add-a-downloadable-file-to-your-form

    If you need to display the link as a button instead of a text, you can do that via the Source Code button of the Paragraph field. Kindly follow these steps:

    1) Add a Paragraph field:

    1612893483_6022cd2bd5f31_Screenshot(1).p

    2) Click the Source Code button:

    1612893815_6022ce7779c76_Screenshot(2).p

    3) And add the following HTML code:

    <button><a target="_blank" href="YOUR_URL" >YOUR TEXT</a></button>

    Make sure to replace YOUR_URL with your own link (please see the guide previously referred to generate a download link), and YOUR TEXT with the text you would like to appear inside the button.

    1612894112_6022cfa0aa69c_Screenshot(4).p


    I hope that was helpful. Let us know if you need any further assistance.