You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Henry Siu (Jira)" <ji...@apache.org> on 2021/03/02 10:16:00 UTC
[jira] [Created] (PDFBOX-5113) Cannot retrieve new value on
javascript by setv()
Henry Siu created PDFBOX-5113:
---------------------------------
Summary: Cannot retrieve new value on javascript by setv()
Key: PDFBOX-5113
URL: https://issues.apache.org/jira/browse/PDFBOX-5113
Project: PDFBox
Issue Type: Bug
Components: AcroForm
Affects Versions: 2.0.22
Reporter: Henry Siu
I have tried the following code:
PDFormFieldAdditionalActions a = new PDFormFieldAdditionalActions();
a.setV(new PDActionJavaScript("app.alert(\{cMsg: event.target.value, nType: 2, nIcon: 2});"));
r.setActions(a);
Which r is PDRadioButton.
I find that event.target.value return the old value instead of the new value after change. Is it any reason or is there any way to get the new value?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org