Expand my Community achievements bar.

SOLVED

create a drop-down list

Avatar

Level 2

it would be possible to create a drop-down list to take fields from an external database or excel file ?

tks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Make sure your form is a dynamic XML form, if you can't find why you cant connect to data source share your form.. there are surely something you are missing.

View solution in original post

8 Replies

Avatar

Level 10

Hi there,

here is a thread that explains how to prepare PDF for data drop down lists

https://forums.adobe.com/thread/2106092?q=data%20drop

Hope this will help you.

Avatar

Level 2

that option is there . But when I insert a drop-down list can not select

the data source .

2016-03-29 15:58 GMT+02:00 Magus069 <forums_noreply@adobe.com>:

create a drop-down list created by Magus069

<https://forums.adobe.com/people/Magus069> in LiveCycle Designer - View

the full discussion <https://forums.adobe.com/message/8635803#8635803>

Avatar

Correct answer by
Level 10

Make sure your form is a dynamic XML form, if you can't find why you cant connect to data source share your form.. there are surely something you are missing.

Avatar

Level 2

Ok tks.

If I wanted to write a long list of around 15 lines as drop-down list?

I have to write all or can in some way make a copy and paste ?

Thanks

Avatar

Level 10

I'm sorry, I'm not quite sure of what you want to do here.

Avatar

Level 2

I have to insert some 150 drop-down list items and I would not write them one by one .

Avatar

Level 10

Okay, but have you connected to the database yet? By connecting to the database you have collected all data without inserting them..

if you want to insert only some of the list items collected from the database, you can use the method setItems() with the drop down list once you have all the data you want to insert,

depends how you collect your data, you can do a loop to add each item one by one with a specific value for each, or setItems sets the value as the string's value

using setItems, you only need to concatenate each values with a comma(","), therefore you can use an array with all the items you want to add and use setItems like the following :

Make sure none of your values contains commas tho, or else it will split one value into 2

Avatar

Level 2

No, no , then I give up. I thought I could do it without connecting to an external database .

Tks