Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Drop Down lists and Text Wrapping

Avatar

Level 1

Hi - I am new at this and would appreciate some help. I am creating drop down lists with a lot of texts. How do I make sure that the text wraps into a few lines? When I preview in pdf only one line comes out and all the text is cutoff. Please help.

3 Replies

Avatar

Level 6

I do not believe this is possible with LCD.  An alternative might be that a user selects a shortened version from the droplist and have the full text of the selection appear in another text field.

Avatar

Level 1

Thank you so much for responding. Would you be able to tell me how to do that? Is there a script. I really appreciate any help you can provide.

Avatar

Level 6

This is a javascript placed on the change event of the droplist:

if (xfa.event.newText=="")

{TextField1.rawValue=""

}

So for example:  If a choice in you droplist is Boston and you want the city and state to appear in TextField1:

if (xfa.event.newText=="Boston")

{TextField1.rawValue="Boston, MA"

}

If the next item in your list is Cleveland:

if (xfa.event.newText=="Cleveland")

{TextField1.rawValue="Cleveland, OH"

}