Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Nov 20, 2025 Nov 20, 2025

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. 

fastdober_1-1763670490965.png

 

 

TOPICS
How to , JavaScript , PDF
67
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2025 Nov 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#currentvalueind...

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 20, 2025 Nov 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2025 Nov 20, 2025
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2025 Nov 20, 2025
LATEST

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

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines