Copy link to clipboard
Copied
I´m trying to modify the list of a combobox using the following javascript code:
this.getField('myfield').setItems([["one", "1"],["two", "2"]]);
The code works as expected in recent versions of acrobat readers (15 or 20), but does nothing in older ones such as 8 (app.viewerVersion). This 8 version is the one installed by default inside Edge web browser at the company I work.
I also tyied to modify the list by erasing and adding entries but the result was the same: no errors but nothing changed.
Is there any known workaround to make it work in every environment?
Thanks in advance.
Sebastian Lorenzo
Copy link to clipboard
Copied
Acrobat 8 is extremely old and not compatible with any current OS or browser (including Edge).
The code by itself should work fine in that version, though.
Copy link to clipboard
Copied
The variable app.viewerType returns "pdfium" when opened in the browser, I think the problem is that is not an adobe product.
Sebastian
Copy link to clipboard
Copied
Yes, that's the Chrome PDF plugin.