Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

How can i show the entire selected option in a dropdown list?

Avatar

Level 4

good day,

 

I have a client that put a lot of info in a dropdown list, one selection could be a few sentences.

 

Once selected, is there a way to dynamically show the entire selection? I'm within a table cell here where I've got a dropdown list, can i dynamically expand it to show the entire content selected?

 

thx,

 

Patrick

 

1 Accepted Solution

Avatar

Correct answer by
Level 10

It's absolutely possible to archive this, but it's a bit complicated. Since dropdowns can't display values in multiple lines you'll need to build a construct of a dropdown field underneath an expandable text field. Then you'll have to programm events to control when which field is visible and to copy selected value from the dropdown over to the text field. 

 

To get this work in a table cell put both fields on top of each other in a subform that has a positioned layout. Then drag the subform into the table cell. 

 

View solution in original post

8 Replies

Avatar

Community Advisor

With the drop down alone its difficult i guess, the " expand to fit " property is disabled for dropdown.

One another workaround is to take hidden textfield along with dropdown and show/hide these 2 as per the selection. I dont know if it will solve your purpose.

Avatar

Level 4

Hi,

 

I did think about something like this as a solution, but i was just wondering if there was another way

Avatar

Employee

@patrickpai to confirm - are you are referring to the requirement in XFA based form (created in Designer)?

Avatar

Moderator

@patrickpai , please confirm the information @sudhansh has asked to help you further. 

Avatar

Level 4

Hi,

 

yes, its an XFA LiveCycle form

Avatar

Employee

@patrickpai  ,the dropdown selection items are sized to fit within the dimensions of the table row or column. However, if an option contains multiple sentences, it may not be fully visible even if the row height or column width is increased.

To ensure users can view the full selection, you can enable a tooltip for the dropdown field. The complete text will appear when the user hovers over the field.

Avatar

Correct answer by
Level 10

It's absolutely possible to archive this, but it's a bit complicated. Since dropdowns can't display values in multiple lines you'll need to build a construct of a dropdown field underneath an expandable text field. Then you'll have to programm events to control when which field is visible and to copy selected value from the dropdown over to the text field. 

 

To get this work in a table cell put both fields on top of each other in a subform that has a positioned layout. Then drag the subform into the table cell. 

 

Avatar

Level 4

Thx very much.

 

I did that and for now, its a good fix and it works

 

Thx again,

 

Patrick