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

Calculation formula help

New Here ,
Mar 25, 2024 Mar 25, 2024

I am brand new to using Adobe forms and formulas. I have a column that will calculate a "project completed percentage" based on the "scheduled value" and "total completed" for each row. I need this form to be empty to pass on to others to fill out but when I have the "scheduled value" column empty there are all these errors that pop up for each row in the "completed percentage" column. How can I prevent the error pop up for each row when that row's schedule value is empty?Screenshot 2024-03-25 102319.pngScreenshot 2024-03-25 102307.pngScreenshot 2024-03-25 102253.png

TOPICS
General troubleshooting , How to , JavaScript
224
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 ,
Mar 25, 2024 Mar 25, 2024
LATEST

First, read this article:

https://www.pdfscripting.com/public/Value-Entered-Does-Not-Match-Format.cfm

 

The root of the issue is a divide by zero.   To fix the issue, write the calculation as a script that tests for a non-zero denominator before performing the calculation. 

 

 

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