We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
three_buttons_same_name.pdf
Firefox 134.0 (64-Bit)
Linux
v4.10.38
Yes
No
The text field should contain “BBB”.
If several buttons with the same name exist. Only the JavaScript of the first button is executed, regardless of which button is pressed.
No response
The text was updated successfully, but these errors were encountered:
Part of the problem appears to be at
pdf.js/src/scripting_api/initialization.js
Lines 89 to 92 in b0b9552
The other buttons don't get their own Field-instances, but are only handled via
Field
Line 99 in b0b9552
Lines 112 to 115 in b0b9552
This is as far as I've got, given my very limited knowledge of the scripting-API. /cc @calixteman
Sorry, something went wrong.
@g19i85g @Snuffleupagus
I created a pull request that fixed the current issues.
No branches or pull requests
Attach (recommended) or Link to PDF file
three_buttons_same_name.pdf
Web browser and its version
Firefox 134.0 (64-Bit)
Operating system and its version
Linux
PDF.js version
v4.10.38
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
What is the expected behavior?
The text field should contain “BBB”.
What went wrong?
If several buttons with the same name exist. Only the JavaScript of the first button is executed, regardless of which button is pressed.
Link to a viewer
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: