Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
2

Having issues with product not calculating correctly.

Community Beginner ,
Aug 23, 2023 Aug 23, 2023

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!

TOPICS
PDF forms
343
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 23, 2023 Aug 23, 2023
 
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2023 Aug 23, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2023 Aug 23, 2023
LATEST

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines