PDF Attachment: Fields with zero (0) value are not shown on PDF
-
EltonAnswered on November 15, 2021 at 05:37 PMJotform Support
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.
The same bug we replicated in the cloned version of your form.
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
In the Notification/Autoresponder, click Form Fields then select PDF Link to add the pdf link tag in the email template.
So when you receive the email notification or the submitter receives the autoresponder, the PDF can be downloaded through the provided download link.
-
Silent_RadioAnswered 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.
-
EltonAnswered on November 17, 2021 at 06:33 PMJotform Support
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:
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.