How to Calculate a PDF Form Field Using Addition and Multiplication
Question details
The user needs to set up a PDF form field to automatically calculate a mathematical result combining addition and multiplication based on other fields.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Creating an interactive PDF form where a specific field needs to display the result of a formula like field1 + (field2 × field3).
- Observed behavior
- The user is looking for the simplest calculation method within PDF form properties, avoiding overly complicated custom scripts.
Verify the exact names of the form fields you intend to use in your calculation, as the formula requires precise matching of field names to work correctly.
Use Simplified Field Notation for Calculations
The easiest way to combine addition and multiplication in a PDF form is by utilizing the built-in Simplified field notation feature in the field properties.
Simplified field notation allows you to write straightforward mathematical formulas using standard arithmetic operators (+, -, *, /) and your exact field names.
Standard order of operations applies automatically, meaning multiplication is performed before addition. You can optionally use parentheses to group specific operations for better clarity.
Open your PDF form in editing mode and double-click the target form field (where you want the calculation result to appear) to open the Text Field Properties dialog box.
Click on the 'Calculate' tab located at the top of the properties window.
Choose the option labeled 'Simplified field notation' and click the 'Edit' button next to it.
Type your formula using your precise field names and standard operators. For example, type: field1 + field2 * field3. Do not include an equals sign at the beginning.
Click 'OK' to save the notation, then close the properties window. Switch to form filling mode and enter test numbers into the reference fields to verify the calculation works correctly.

Easily Fill and Manage PDF Forms with WPS Office
WPS Office includes a robust PDF toolset that allows you to easily open, fill out, and manage interactive PDF forms containing complex automatic calculations without any compatibility issues.
- 1. Open WPS Office: Launch WPS Office and open your interactive PDF form using the built-in WPS PDF viewer.
- 2. Access Form Mode: Navigate to the 'Form' or 'Fill & Sign' tab to highlight all fillable fields in your document.
- 3. Input Your Data: Click on the text fields and input your numbers. Any pre-configured calculations (like addition and multiplication) will automatically update the target fields.
- 4. Save the Document: Once your form is completely filled and calculated, click 'Save' or export the document to securely lock your calculated values.

Frequently Asked Questions
Why is my PDF form calculation not updating automatically?
If fields are not updating, you might have typed the field names incorrectly in your notation, or the PDF calculation order might be wrong. Ensure the referenced fields are calculated before the final target field in the form's calculation order settings.
Can I use custom JavaScript instead of simplified field notation?
Yes. If your calculation involves complex logic like conditional statements (if/then), you can choose 'Custom calculation script' in the Calculate tab and write standard JavaScript code to achieve the desired result.
Do I need to add an equals sign at the start of my formula?
No, when using the Simplified field notation feature in standard PDF forms, you must omit the equals sign. Simply write the field names and mathematical operators directly.
Does spaces between field names and operators matter?
Spaces around mathematical operators (like + or *) are generally ignored by the simplified field notation parser. You can add them to make your formula easier to read, such as `Price * Quantity`.




