Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Aug 27, 2025 Aug 27, 2025

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 : 

 

TOPICS
How to
166
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 27, 2025 Aug 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 28, 2025 Aug 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 ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 28, 2025 Aug 28, 2025

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

Is it a new feature?


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 29, 2025 Aug 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 30, 2025 Aug 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 ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 09, 2025 Sep 09, 2025
LATEST

Hello @sums_6783

 

I hope you are doing well. Please contact the API support team, and they will be able to assist you with the steps or any custom scripts required for your customized workflow.

 

Thanks,

Anand Sri.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources