Javascript actions on form fields #4761
Unanswered
BalooRM
asked this question in
Looking for help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Similar to Discussion #2157 (is there any way to add Document level Javascript?), I have created a form that contains text fields with some fields that need to be verified at entry as numbers. In Adobe Acrobat Pro, I can edit the properties of the numeric form field to specify decimal places, percentage, and currency formats. In practice, the Acrobat-modified PDF prevents typing of alphabetic characters in these numeric fields. Is there a similar capability using PyMuPDF low-level interface calls?
What is the alternative to the OpenAction key that is needed here when creating the JS reference and adding it to the catalog?
UPDATE: Further investigation has determined that the AFNumber_Format() and AFNumber_Keystroke() functions (below) are unique to the Acrobat API. I will be investigating use of equivalent/similar functions.
Are xref objects, such as the following supported?
Beta Was this translation helpful? Give feedback.
All reactions