Drop down list showing multiple lines - PDF Form
Copy link to clipboard
Copied
How can I create a drop down list showing multiple lines on each selection? Please, one easy step-by-step solution? The sentence is cut off when viewing the selected choice in the drop down list box in the PDF. Doing this for the first time - Thanks!
Copy link to clipboard
Copied
You can't. Drop-down fields were only built to have single-line items. Technically, there is a way to apply multi-line items, but it's undocumented, not supported and quite buggy, so I would advice against doing it.
Copy link to clipboard
Copied
I would like to try the "buggy" way. Any chance you can explain that way for me?
Copy link to clipboard
Copied
This requires using a script.
Let's say the field is called "Dropdown1". You can run this tool from the JS Console to apply three items to it, two of them with multiple lines:
this.getField("Dropdown1").setItems(["Item 1", "Item 2\nSecond line", "Item 3\nSecond line\nThird line"]);
You'll see the issues for yourself once you run it...

