Copy link to clipboard
Copied
Is a way I can wrap the text so it can be fully read. Each menu option might be long as it is for narration purposes
Copy link to clipboard
Copied
Yes, but it's not a good idea. The text in drop-downs must be a single line for them to work correctly.
You need to think of another solution to this problem.
Copy link to clipboard
Copied
The other solution can be the code that I used to wrap manually my text. See sample here under
Here the result compared with the wrap text
Copy link to clipboard
Copied
This is a pretty old post. And I can't seem to get the "\r" to work. I'm surprised Adobe hasn't provided a solution for this. Anyone else have any luck?
Copy link to clipboard
Copied
You need to use "\n", actually. I don't know what the above post is referring to.
Here's the basic code that does it:
this.getField("Dropdown1").setItems(["Item 1", "Item 2\nLine 2 of Item 2", "Item 3"]);
You'll see for yourself that it doesn't work very well, unless all values have the same number of lines in them.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now