Use calculations in PDF forms responsibly
16 August 2026
A quote form displays 0.00. Did the applicant deliberately request zero items, or did the PDF turn an empty quantity into zero? Keep the raw quantity alongside the calculated display. Those two cases have different meanings even when a permissive reader gives them the same total.
Work through one quote line
Assume a unit price of 12.50 in illustrative currency units and a 10% discount. For three units, the calculation is 3 × 12.50 = 37.50 before discount. The discount is 3.75 and the net amount is 33.75. Multiplying by three a second time would price nine units.
| Entered quantity | Interpretation | Expected treatment in this example |
|---|---|---|
| 3 | Three units requested | Gross 37.50, discount 3.75, net 33.75. |
| 0 | Deliberate zero | If zero is permitted, record zero explicitly and calculate 0.00. If policy requires at least one, identify that failed rule. |
| Blank | No quantity supplied | Keep it missing, flag the required input and withhold the final line total. |
Define the treatment of fractions, negative quantities, invalid text and decimal separators before relying on the form. Specify whether the discount or the final net amount is rounded first, what precision applies and what happens at a halfway value. Multiple legitimate rounding policies can give different totals across many lines so use the one the business actually adopted.
Compare displayed, saved and exported values
Enter each control case in the intended reader. Save, close and reopen the form, then export the fields through the same route staff will use. Check that the exported quantity preserves the difference between missing and zero. Recalculate the amount independently from the captured inputs and discount rule. Record any stale display when a reader does not run the form’s calculation logic.
The field specification is an example of declaring required inputs and calculated outputs. It represents a different form and supplies no observed monetary result for this quote. If the independent check disagrees with the displayed total, retain the input values and calculation version, and route the quote for review before it is sent.
Part of the A field specification for an equipment-loan PDF form guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
