Copy link to clipboard
Copied
hi there, i need some help with this.
i have a dropdown with A, B and C
if i pick A..then press a button...it adds A in a list
then if i pick B from the dropdown...press the same button ..it adds B to the list too
so my list has A and then under A there is B.
can someone help with this?
Copy link to clipboard
Copied
Read these articles:
https://www.pdfscripting.com/public/List-Field-Usage-and-Handling.cfm
https://acrobatusers.com/tutorials/change_another_field/
https://acrobatusers.com/tutorials/js_list_combo_livecycle/
Populating a list items dynamically can cause cascades of reentrant event. So be careful.
Copy link to clipboard
Copied
thanks, i will look into it.
i found an example where text is inserted in a list and then thru a button exported into a droplist..
hopefully i can reverse that.
Copy link to clipboard
Copied
The last article in my list is about adding new list items to a dropdown from changes in another dropdown.
Should be close to what you need.
Copy link to clipboard
Copied
close but not what i need . thanks
Copy link to clipboard
Copied
Try this article:
https://acrobatusers.com/tutorials/list_and_combo_in_lc/
It has an example PDF that moves items from one list to another.
It has everything you need to figure you how to write the script you want.