Skip to main content
Participant
Aug 27, 2025 2:58 PM UTC
Question

Help with creating a pdf template to be filled via an API from a webpage

Hi , 

 

I am trying to create a pdf template which would be used to generate pdf files based on a web app and data parsed though that web app. I have manaed to generate it via an API call.

I am now facing issue where in the need is to hide the fillable fields and labels if my payload does not contain that information to be parsed into the template. 

For Example. 

First Name : 

Middle Name : 

Last Name : 

 

If I do not pass the Middle Name field value, that field as well as the label should not appear in the pdf created. It should be like :

 

First Name :  

Last Name : 

 

6 replies

JR Boulay
Community Expert
Community Expert
Aug 28, 2025 10:43 PM UTC

"In the Properties window, go to the Conditions section."

Is it a new feature?

Translate
Acrobate du PDF, InDesigner et Photoshopographe
AnandSri
Legend
Aug 29, 2025 11:30 AM UTC

Hello @sums_6783

 

I'm sorry for the typo. I corrected the previous post, and the above suggestions are for Acrobat Desktop and a sample example for PDF forms. Also, as suggested earlier, you can contact the API experts in the community, and they may help you with custom scripts to achieve this workflow. Or can guide you with any options available with APIs.

 

Thanks,

Anand Sri

Translate
sums_6783Author
Participant
Aug 30, 2025 10:57 AM UTC

I am using the Adobe Pro Desktop app and I do not see this feature. What is is that I am missing ? Could you please provie a screenshot of the same ?

Translate
AnandSri
Legend
Aug 27, 2025 6:22 PM UTC

Hello @sums_6783

 

I hope you are doing well, and thank you for reaching out.

 

To dynamically hide fields and labels when certain data (like "Middle Name") is missing from your payload, you can use conditional logic in Acrobat form fields:

  1. Open your PDF template in Acrobat.
  2. Right-click or double-click the field (e.g., “Middle Name”) to open its Properties.
  3. In the Properties window, go to the Actions section.
  4. Select the Trigger and Action for the field.

 

This ensures that fields and their labels are only shown when relevant data is available.

 

See these articles to learn more: Setting conditional content, Template Tags, and Acrobat JavaScript API Reference. 

 

You can also post your question to the Acrobat Services API community, and the team will assist you further.

 

Thanks,
Anand Sri | Acrobat Community Team
Meet Acrobat Studio

Translate
sums_6783Author
Participant
Aug 28, 2025 9:34 PM UTC

Hi Anand , 

 

Thank you for getting back to me. 

I am using Acrobat Pro 2020 and I cannot find any of the triggers you have mentioned above. Do I need another version of Adobe Pro ?

Translate