PDF Attachment: Fields with zero (0) value are not shown on PDF

  • Profile Image
    Silent_Radio
    Asked on November 15, 2021 at 05:19 PM
    Ok after further testing, it looks like the form is filling in fine, but when I get the PDF in the email the zero's don't show up.
  • Profile Image
    Elton
    Answered on November 15, 2021 at 05:37 PM

    Hi,

    We created this separate ticket to avoid confusion since the initial ticket you created was about the substring issue on the form. This ticket is now about the PDF bug not showing fields with zero value.

    Again, here's our test in our form showing the bug. Fields with zero value are not shown on the PDF.

    1637015653_6192e0653be82_20211116060707Hq.png

    20211116061051WG.png

    The same bug we replicated in the cloned version of your form.

    20211116062757kE.png

    Alternatively, you can still download PDFs on email through the PDF download link when you include {pdf-link} tag in your form notification. This should display all fields including fields with zero value.

    Here's how;

    In the form builder, go to Settings > Emails > edit Notification or Autoresponder

    20211116063114fV.png

    In the Notification/Autoresponder, click Form Fields then select PDF Link to add the pdf link tag in the email template.

    20211116063028hD.png

    So when you receive the email notification or the submitter receives the autoresponder, the PDF can be downloaded through the provided download link.

  • Profile Image
    Silent_Radio
    Answered on November 17, 2021 at 05:05 PM

    Hello,

    The PDF Link unfortunately downloads the incorrect PDF. The one titled New Document 1 that is for some reason auto created. I really hate this feature and have no use for this option when I've already provided a PDF form.


  • Profile Image
    Elton
    Answered on November 17, 2021 at 06:33 PM

    You're right and I apologize for missing that part. The PDF Link will download the default custom PDF not the original PDF.

    Here's another workaround. This should download the original PDF. So instead of using the PDF Link tag, use this link instead:

    https://api.jotform.com/pdf-converter/210405577435151/fill-pdf?download=1&submissionID={id}&apikey={apiKey}

    Make sure to replace {apiKey} with your API Key. You can get one here: https://www.jotform.com/myaccount/api

    210405577435151 is your Form ID so I guess there's no need to replace it.

    Here's an example on how it would look like on email:

    20211118073240Bs.png

    Keep in mind that this link contains your API Key so as much as possible use an API Key with Read Access permission only and do not share the link with anyone.