Attach (recommended) or Link to PDF file
Description:
I am using the pdf.js library to rendering PDFs that contain form fields with embedded formulas. When I open the PDF in any pdf reader and enter values, the formula in the specific field is triggered, and the result is calculated correctly for that field only.
However, when using pdf.js, entering a value in one field causes the formulas in all fields to be calculated, not just the one being edited.

In another pdf when I am entering any value it is suppose to do an calculation like this

but is not at all getting triggered

Expected Behavior:
Entering a value in a specific form field should trigger the formula and calculate the result for that field only.
I have been struggling with this issue for the past 2-3 days and would greatly appreciate any assistance or guidance. Thank you in advance for your help.
Web browser and its version
firefox 127.0
Operating system and its version
Linux
PDF.js version
pdfjs-dist: 3.11.174
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
Open any pdf which is having formulas in it.
What is the expected behavior?
Entering a value in a specific form field should trigger the formula and calculate the result for that field only.
What went wrong?
Either not triggering the calculation or triggering calculation for the filed which is not expected.
Link to a viewer
No response
Additional context
No response
Attach (recommended) or Link to PDF file
Description:
I am using the pdf.js library to rendering PDFs that contain form fields with embedded formulas. When I open the PDF in any pdf reader and enter values, the formula in the specific field is triggered, and the result is calculated correctly for that field only.
However, when using pdf.js, entering a value in one field causes the formulas in all fields to be calculated, not just the one being edited.
In another pdf when I am entering any value it is suppose to do an calculation like this
but is not at all getting triggered
Expected Behavior:
Entering a value in a specific form field should trigger the formula and calculate the result for that field only.
I have been struggling with this issue for the past 2-3 days and would greatly appreciate any assistance or guidance. Thank you in advance for your help.
Web browser and its version
firefox 127.0
Operating system and its version
Linux
PDF.js version
pdfjs-dist: 3.11.174
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
Open any pdf which is having formulas in it.
What is the expected behavior?
Entering a value in a specific form field should trigger the formula and calculate the result for that field only.
What went wrong?
Either not triggering the calculation or triggering calculation for the filed which is not expected.
Link to a viewer
No response
Additional context
No response