Expand my Community achievements bar.

Programmatically setting box list items as selected

Avatar

Level 1

Hi,

I am trying to set all the entries of a multi-select list box as selected in the docReady event.

The code looks something like:

..this.setItemState(i, true) //for all entries of the list.

However, as reported in some forum contributions and documented in "Adobe Reader 9.0 Compatibility Overview", there seems to be a bug in the API, and only the first item of the list is marked as selected.

I would therefore like to ask whether someone has found a workaround for this problem and still manages to highlight all entries of a listbox (for instance by using a different event)?

Thanks,

Regards

0 Replies