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

Problem creating listbox with no item selected

New Here ,
Dec 08, 2019 Dec 08, 2019

Copy link to clipboard

Copied

When creating a dialog box containing a listbox with the execDialog function I am having a problem with Adobe Acrobat Reader DC. I want to create a listbox with no item selected. When using the array like { "Line1": -1, "Line2": -2, "Line3": -3} the "Line1" item is selected when it has a code beside it of -1 not +1.

 

There is no problem when using an alterantive to Adobe Reader I have.

 

Thanks for any help.

 

TOPICS
Acrobat SDK and JavaScript

Views

456

Translate

Translate

Report

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

correct answers 2 Correct answers

Community Expert , Dec 08, 2019 Dec 08, 2019

Definately a bug in the ADM.  I do not believe there is a way to get around this for a single selection list. 

Would adding a blank entry as the default selection help?  

 

 

Votes

Translate

Translate
New Here , Dec 08, 2019 Dec 08, 2019

Thanks for confirming this is a bug. I have the choice of adding a blank entry or an OK button to get aroung the problem. It had been set up to run a function on clicking the relevant line.

Votes

Translate

Translate
Community Expert ,
Dec 08, 2019 Dec 08, 2019

Copy link to clipboard

Copied

Definately a bug in the ADM.  I do not believe there is a way to get around this for a single selection list. 

Would adding a blank entry as the default selection help?  

 

 

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

Votes

Translate

Translate

Report

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 ,
Dec 08, 2019 Dec 08, 2019

Copy link to clipboard

Copied

LATEST

Thanks for confirming this is a bug. I have the choice of adding a blank entry or an OK button to get aroung the problem. It had been set up to run a function on clicking the relevant line.

Votes

Translate

Translate

Report

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