Copy link to clipboard
Copied
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 :
Copy link to clipboard
Copied
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:
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
Copy link to clipboard
Copied
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 ?
Copy link to clipboard
Copied
"In the Properties window, go to the Conditions section."
Is it a new feature?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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 ?
Copy link to clipboard
Copied
Find more inspiration, events, and resources on the new Adobe Community
Explore Now