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.

Can I set a dropdown list with custom text entry to multiple lines or limit the character length

Avatar

Level 2

Afternoon

Is it possible to have a dropdown list with custom text entry to expand to multiple lines when additional text is added and / or limit the character length to the size of the field?

I'd be grateful for any advice on this asap as it's the final bit for my form :-)

Cheers

Ben

3 Replies

Avatar

Level 4

A dropdown list only shows single lines.But you can use a textfield for multiline.

For Custom Text Entry you can check the "Allow custom text Enter" checkbox on the Field tab, you can type a default selection that is not one of the  list items.

 

Note: This option is available only when the Type option is set to User Entered - Optional, User Entered - Recommended, User Entered - Required, or Read Only.

Avatar

Level 2

Thank you

This isn't ideal so is there a way I can limit the length of custom text for a dropdown?  Preferably to the size of the existing field.

Cheers

Avatar

Level 4

I'd suggest adding multi-line text fields next to the dropdown boxes (Probably as part of a flowed sub-form). Populate the text field as soon as an item is changed in the dropdown.

Set the presence of the dropdown to "visible - screen only" and the presence of the text box to "visible - print only". This will cause the full text of the selected item to be displayed when printing, but when the user is filling in the form he will be working with the dropdown.