You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2021/03/08 16:38:00 UTC

[jira] [Closed] (PDFBOX-5113) Cannot retrieve new value on javascript by setv()

     [ https://issues.apache.org/jira/browse/PDFBOX-5113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr closed PDFBOX-5113.
-----------------------------------
    Resolution: Not A Bug

> 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
>            Priority: Major
>
> 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