Expand my Community achievements bar.

SOLVED

clone values of drop down list

Avatar

Former Community Member

Hello,

I have five drop-down lists in pdf form and each of them has the same list of values. The value list is very long.

Is it possible, to define the value-list once and use it for all of the drop-down lists somehow?

I need to define value-list in designer in the form (so not e.g. fill it from livecycle forms).

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

The sample is one way of scripting it where the data (list items) is in the form. If you are connecting to a database, then you can link to the data connection to populate the list items:

Parallels Desktop1.png

Check out John Brinkman's blog for populating list boxes from xml: http://blogs.adobe.com/formfeed/2009/10/populating_list_boxes_1.html

Also do a general search for "addItem" on his blog.

Good luck,

Niall

View solution in original post

3 Replies

Avatar

Former Community Member

Thank you very much for sample Niall !

I was hoping, that it could be done without scripting.

In this case, the form is reader-extended and user can store and again reopen the form anytime in different states.

In addition, the form is beeing prefilled by livecycle forms server.

I am not sure, if this might not bring some problem states.

But If there is no non-scripting way, I can definitively use it, thanks.

Avatar

Correct answer by
Level 10

Hi,

The sample is one way of scripting it where the data (list items) is in the form. If you are connecting to a database, then you can link to the data connection to populate the list items:

Parallels Desktop1.png

Check out John Brinkman's blog for populating list boxes from xml: http://blogs.adobe.com/formfeed/2009/10/populating_list_boxes_1.html

Also do a general search for "addItem" on his blog.

Good luck,

Niall