Skip to main content
Participant
August 23, 2023
Question

Having issues with product not calculating correctly.

  • August 23, 2023
  • 3 replies
  • 394 views

Hello, 

I have a form that I am preparing for our technicians to use, and the issue I am having is that I have a calculation of a product in a total column, which is working for some fields but not others. It's working for half the form and not the other half. I have change the calculation field to calculate the corresponding text for those fields. Can anyone help me figure out why this is happening when the calculations are the same? I can upload my document if needed. 

 

Thanks!

This topic has been closed for replies.

3 replies

Thom Parker
Community Expert
Community Expert
August 23, 2023

If you would have looked in the console window you would have seen that there were several errors with "getField() is null". Which means there are bad field names in the calculation. In the cases where it doesn't work a field name is incorrect. 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
August 23, 2023

Check the JS Console (Ctrl+J). There are a LOT of errors in your calculation scripts.

Participant
August 23, 2023
Emergency_Price_List_8-23-23_upload.pdf