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.

How Can I Word-wrap a Value?

Avatar

Level 2

How can I force a selection in a drop-down menu to word-wrap in the value portion of an object?  I can achieve my desired result in the caption portion by increasing the height of the object.  However, when I increase the size of the object, the value portion does not wrap.

2 Replies

Avatar

Level 7

Are you sure that a drop down menu is the best option for what you're doing? Maybe another Object type would suit your purposes better--like radio buttons.

----------

Anyway, You can edit the XML source and add a CDATA tag around the items in your list. So, if you have a drop down list with {Something really long goes here, Something else really long here, And another really long thing} as your options, click on the XML Source tab.

Add

<![CDATA[Something really long

goes here]]>

Now, this will break the line as you're wanting to do, but it's going to cause a different problem--The list of items was originally selected by the first, second, and third lines in the dropdown list. They still are. So, you have 6 different lines, and only the first three can select something. If you're just wanting to have a dropdown that the user selects to read a list and not to select something, then this is probably ok. If you want the user to select an item, then this is a terrible idea.

----------

If your lines are just a little bit too long to fit, you can set the value's font to "0" Then it will shrink and expand the font size to fit the largest selection. Two notes, the dropdown arrow will cover the last bit of the line, and there is a limit to how small it can get.

Avatar

Level 2

My drop-down menu has over 100 selections.  I don't think the radio button approach is practical.  I will try setting the font size to "zero" and see what happens.