Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

create a drop-down list

skate2k5
Level 2
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
Magus069
Correct answer by
Level 10
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
Magus069
Level 10
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.

skate2k5
Level 2
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>

Magus069
Correct answer by
Level 10
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

skate2k5
Level 2
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

Magus069
Level 10
Level 10

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

skate2k5
Level 2
Level 2

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

Magus069
Level 10
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

skate2k5
Level 2
Level 2

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

Tks