Skip to main content
Participant
November 20, 2025
Question

Multiple selections from drop down list or list box to text field

  • November 20, 2025
  • 2 replies
  • 85 views

Hi gurus,

 

I came across the situation where I want to select multiple value from list box and display those selected values to Text field.

For eg: Lets say we have 2 fields. one is  list box. another is Text field. My  List box contains 

Red

Blue

Green

Yellow

Black

If user selects Red, Blue and Yellow. Then I want to display these 3 values on the Text field simultaneously.

Now, I have seen the code where  var v = this.getField("ListBox1"); but the issue is I dont have this functionality(this.getField) in my adobe livecycle designer.Attached ss of not having functionality. so can you pls provide js or any solution through which I can resolve this. 

 

 

2 replies

try67
Community Expert
Community Expert
November 20, 2025
Thom Parker
Community Expert
Community Expert
November 20, 2025

Good Spot!! I read through that way to fast.  And you can even see Designer in the image.  

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Thom Parker
Community Expert
Community Expert
November 20, 2025

Here's an Acrobat JavaScript reference link to the relavant property for acquiring multiple selections, 

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#currentvalueindices

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
fastdoberAuthor
Participant
November 20, 2025

Hi Thom, thank you for this. Exellent reference . But my problem is that I don't have this functionality this.getField which I can see in the reference link you shared . You can see that in the ss I shared. Am I checking something wrong? any suggestions?