Skip to main content
Participant
August 27, 2025
Question

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

  • August 27, 2025
  • 2 replies
  • 295 views

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 : 

 

2 replies

JR Boulay
Community Expert
Community Expert
August 28, 2025

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

Is it a new feature?

Acrobate du PDF, InDesigner et Photoshopographe
AnandSri
Community Manager
Community Manager
August 29, 2025

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

sums_6783Author
Participant
August 30, 2025

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 ?

AnandSri
Community Manager
Community Manager
August 27, 2025

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

sums_6783Author
Participant
August 28, 2025

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 ?