Skip to main content
Participant
Nov 20, 2025 8:31 PM UTC
Question

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

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. 

 

 

4 replies

try67
Community Expert
Community Expert
Nov 20, 2025 10:18 PM UTC
Thom Parker
Community Expert
Community Expert
Nov 20, 2025 11:48 PM UTC

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

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Thom Parker
Community Expert
Community Expert
Nov 20, 2025 8:42 PM UTC

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

 

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
fastdoberAuthor
Participant
Nov 20, 2025 9:01 PM UTC

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?

Translate