Problem creating listbox with no item selected

New Here ,
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.

 

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.

TOPICS
Acrobat SDK and JavaScript, PDF forms

Views

88

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

Problem creating listbox with no item selected

New Here ,
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.

 

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.

TOPICS
Acrobat SDK and JavaScript, PDF forms

Views

89

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
Dec 08, 2019 0
Adobe Community Professional ,
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?  

 

 

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
Reply
Loading...
Dec 08, 2019 0
New Here ,
Dec 08, 2019

Copy link to clipboard

Copied

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
Reply
Loading...
Dec 08, 2019 0