Skip to content
New issue

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

[Bug]: "Buttons With The Same Name And Content Are Selected In Unison" is not supported #18906

Open
miri0001 opened this issue Oct 15, 2024 · 0 comments

Comments

@miri0001
Copy link

miri0001 commented Oct 15, 2024

On PDF forms, there is an option called:

This option allows several radio button groups to share the SAME name and Export values for them to react all synced together (mirroring their values):

  • Sample: PDF_radio_buttons_unison.pdf
  • On the upper part, any change on the radio button group will reflect automatically on the lower radio button group (and vice-versa).

This does not work on:

  • PDF.js (nightly) --> The changes on each radio button group are not reflect to the other group. Both groups are treated as one big group.

This works on (not exhaustive):

  • Chrome embedded PDF reader
  • Mozilla Firefox embedded PDF reader
  • Edge embedded PDF reader
  • Adobe Acrobat Reader
  • Foxit Reader
  • PDF Xchange
  • React PDF Viewer

Web browser and its version

Chrome 129.0.6668

Operating system and its version

Windows 11

PDF.js version

4.7.109

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Open the above attached sample PDF in the nightly build https://mozilla.github.io/pdf.js/web/viewer.html
  2. Change a checkbox in the top radio buttons group
  3. The changes ARE NOT reflect in the bottom radio buttons group.

Wrong result on PDF.js :

image

What is the expected behavior?

  1. The changes on the top group should be reflect to the bottom group. Both group should act as mirrors, their values should be synced.

Expected result:

image

What went wrong?

The option to treat both radio buttons group values in "unison" is not working properly.

Link to a viewer

Expected result can be seen by drag and dropping the sample on https://react-pdf-viewer.dev/

Additional context

I've found a correlated PR from 2021: #14027 , issue: #14024 . This was probably only fixing the issue for checkboxes but not for radio buttons ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants