Copy link to clipboard
Copied
I'm using Acrobat Pro DC 2019 (Win10). I would like to create a fillable form whereby one section of the form will have different text contents (3-4 bullets) depending on the input to a specific field. For example:
If input is "one", the section is to be populated with the following:
- Beautiful world
- What a wonderful day
- I love what I do
If input is "two", the section is to be populated with the following:
- You're not bad
- She's OK
If input is "three", populate with the following:
- Let me give it a try
- I love music
- Please paint a picture for me
- How must is a movie ticket these days
If this is do-able with Acrobat Pro DC, any tips/instructions would be much appreciated.
Copy link to clipboard
Copied
Content on a PDF is fixed, you'd need to place the maximum number of bullet lines needed. But yes, you could set field values with each selection that change the items in the bullet list. Scripting is required for this. Do you have any experience with JavaScript?
Copy link to clipboard
Copied
Unfortunately, I don't have any knowledge of JavaScript at all.
So I assume the approach is to place all the possible bullets in that section and hide those don't apply, and the JavaScript would determine which bullets to show + align the bullets together?
Copy link to clipboard
Copied
That would be one way to do it. In fact, you could create a solution that hides and shows existing entries using radio buttons and no scripting. One of the actions on a MouseUp event is show/hide fields. But you couldn't align any items.
But my solution would be to change the text in the form fields based on the selection. This is much easier than having lots of hidden items to manage.
Another solution is to use a List Field instead of regular bullet list.
Copy link to clipboard
Copied
Aligning the items is important for me with this form, as otherwise it would be very ugly, so the MouseUp option would be last resort.
I had shorten my examples but the true text i will need in my document is actually all long bullets, so I believe the List Field might not be able to handle it properly, but I will give it a try. It sounds like your solution would be best but I guess I will have to start learning JavaScript ![]()
Copy link to clipboard
Copied
See this article on changing a field from a dropdown:
https://acrobatusers.com/tutorials/change_another_field
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more