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]: Form fields with the same name are not updated when the pdf is saved #18630

Closed
ivannavarrete-additio opened this issue Aug 20, 2024 · 0 comments · Fixed by #19054
Closed
Assignees

Comments

@ivannavarrete-additio
Copy link

ivannavarrete-additio commented Aug 20, 2024

Attach (recommended) or Link to PDF file

same_annotation_name.pdf

Web browser and its version

Chrome 127.0.6533.120

Operating system and its version

Windows 11 Pro 23H2

PDF.js version

v4.5.136

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

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Open attached file "same_annotation_name.pdf" in the demo viewer.
  2. Modify one of both form fields, since they have same name both gonna change.
  3. Save the document.
  4. Open the document with Chrome.
  5. The fields are gonna look changed, but when you click on one of them you'll see that the value wasn't changed.

What is the expected behavior?

The text should look changed in both fields, as it seemed before saving the document in the demo viewer. For example, if you want to do a document where you have some fields repeated, like the name of a person, you want to make them have the same value. This behaviour is useful when you put more than one field with the same name, in this case I am using "Texto1" in both of them.

What went wrong?

The value hasn't changed, it looks like it did but when you try to modify it again, the old value returns and the modified one is lost.

Before saving
image

After saving
image
image
image

Link to a viewer

No response

Additional context

No response

@ivannavarrete-additio ivannavarrete-additio changed the title [Bug]: Annotation values with the same name are not updated when the pdf is saved [Bug]: Form values with the same name are not updated when the pdf is saved Aug 20, 2024
@ivannavarrete-additio ivannavarrete-additio changed the title [Bug]: Form values with the same name are not updated when the pdf is saved [Bug]: Form fields with the same name are not updated when the pdf is saved Aug 21, 2024
@calixteman calixteman self-assigned this Nov 16, 2024
calixteman added a commit to calixteman/pdf.js that referenced this issue Nov 16, 2024
calixteman added a commit to calixteman/pdf.js that referenced this issue Nov 16, 2024
calixteman added a commit to calixteman/pdf.js that referenced this issue Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants