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 To Add multiple items to dropdown

Avatar

Level 3

Hello All,

Lets say i have 100 items to add to a drop-down/listbox; each having its own corresponding value.  Do i have any means to add all values at once instead of adding one by one manually.  If so, how can i do that.  Please explain briefly.

Thanks

Deepak

4 Replies

Avatar

Former Community Member

Are you referring to adding items to a drop down list when you are designing the form, or at runtime when a user is filling in the form?

If it's design time, as far as I know you must manually add the items.

Regards

Steve

Avatar

Level 3

Hi Steve,

Yes, its at the design time.

lets consider the scenario like this, i had 10 items when i initially designed the PDF form.  But later i got a new requirement that the dropdown needs to be updated with 90 more items.  so do i need to add those 90 items manually or is there any other way i can add those 90 at a time.  something like copy paste or something.

Thanks

Deepak

Avatar

Former Community Member

Deepak

You will need to manually add the items to the drop list.  Once the list is complete, you can add the configure drop down list object to yuor custom library so it can be used in the design of other form templates if desired.

Regards

Steve

Avatar

Level 10

one dirty solution for your need,

<items>

     <text>text1</text>

     <text>text2</text>

</items>

<items save="1" presence="hidden">

     <text>value1</text>

     <text>value2</text>

</items>

look at the above xml snippet. this is how your drop-down values list will be represented.

So you could open the XML Source in the LiveCycle designer and paste your 90 values here.

if you have only the raw values like value3, value4 etc, you can make use of the TextPad software to enclose them with the angle brackets (<>) using regular expression replace method.

Hope it will help you.

Nith