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

Drop down list showing multiple lines - PDF Form

New Here ,
May 03, 2019 May 03, 2019

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!

TOPICS
Create PDFs
3.7K
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 ,
May 03, 2019 May 03, 2019

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.

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 ,
May 03, 2019 May 03, 2019

I would like to try the "buggy" way. Any chance you can explain that way for me?

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 ,
May 03, 2019 May 03, 2019
LATEST

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...

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