Skip to main content
Participant
February 22, 2023
Question

pick an option from dropdown then press a button and fill a List?

  • February 22, 2023
  • 1 reply
  • 1690 views

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?

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
February 22, 2023

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. 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
February 23, 2023

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.

Participant
February 24, 2023

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. 

 

 


close but not what i need . thanks