Skip to main content
bterry302
Known Participant
September 7, 2018
Question

Drop-down Menu Formatting issue

  • September 7, 2018
  • 4 replies
  • 8435 views

is there a way to make the text wrap in a drop down menu in adobe forms so I can see multiple lines of text? I need to add options that are too long and don't show on one line.

4 replies

Participant
September 3, 2020

I agree. This is a most frustrating part of Dropdowns. I want to create dropdowns with with multiple options for standardised paragraphs in a form, but the result doesn't wrap to the sides of the box created - very frustrating. What I'm reading in the responses is that you need to be some kind of Javascript code writing guru to make it kind of work. This text wrapping should be the default for any field that can take text or numbers regardless. Adobe - Please fix this. I create forms and documents and I shouldn't also have to become a specialised code writer to achieve what I need to achieve.

bterry302
bterry302Author
Known Participant
September 10, 2018

TRY67,

I couldn't even get that to work but I am sure I am doing it wrong. can you please tell me how I would use a line break so I can see what it does? also do you have a different solution? seems kind of strange Adobe offers it in a standard text box but not a drop down menu?

Thanks for your time

try67
Community Expert
Community Expert
September 11, 2018

The code provided by Thom is correct, and is the only why of doing it. This is what it looks like (notice the buggy way in which the "pear" objects moves around):

bterry302
bterry302Author
Known Participant
September 11, 2018

Great. Can you tell me exactly how to do that please

Sent from my Sprint Samsung Galaxy S8.

bterry302
bterry302Author
Known Participant
September 10, 2018

Thom that didn't work. any other ideas?

The bottom edge needs to be cut up 2” from any hard surface and 4” from landscaping. In some areas bottom edge needs to be sealed properly to not allow insects and moisture from entering the system.

This is what I need to wrap if it helps.

try67
Community Expert
Community Expert
September 10, 2018

I would advice you don't do that. It's an undocumented feature and it doesn't work very well. You'll notice it behaves strangely when you select an item with a line-break.

Thom Parker
Community Expert
Community Expert
September 7, 2018

Do you mean an actual popup menu, or do you mean the ComboBox(DropDown) form field?

In the first case, the popup menu does not support multiline items, but the dropdown form field does. The multiline entries are added with a script, like this:

this.getField("Dropdown").setItems(["Red\nApple", "orange", "Red\nPear"]);

The first and last entries use the newline character "\n" to create two lines in those entries.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
bterry302
bterry302Author
Known Participant
September 7, 2018

Sorry I meant drop down menu. I have an item that doesn't fit in the box because it's too long and I need it to have like a multi line or wrap text feature so it will stay it the box whether it's a paragraph or a few words. Hope that is more clear. 

Sent from my Sprint Samsung Galaxy S8.