Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5113

Cannot retrieve new value on javascript by setv()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.0.22
    • None
    • AcroForm
    • None

    Description

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            kkkksiu Henry Siu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: