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, PDF forms

Views

106

Likes

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

Adobe Community Professional , 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?  

Likes

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.

Likes

Translate

Translate
Adobe Community Professional ,
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

Likes

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.

Likes

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