How to Create Quantity and Unit Cost Calculations in PDF Forms
Question details
The user wants to configure a PDF form to automatically multiply a quantity field by a unit cost field, use dropdown values for pricing, and troubleshoot fields that remain at zero.

- Product
- PDF Forms
- Device & OS
- not provided
- Scenario
- Creating an interactive PDF form, such as an invoice or order sheet, that requires automatic price calculations.
- Observed behavior
- The user attempts to set up a product calculation, but the total field sometimes fails to update and remains at zero when numbers are entered.
Ensure that all form fields required for the calculation are created and assigned unique, identifiable names before configuring their properties.
Configure the Total Field for Multiplication
Set the total field's properties to automatically multiply the values inputted into the quantity and unit cost fields.
This is the standard method for creating simple arithmetic calculations between fields in interactive PDF forms.
Right-click the field where you want the total result to appear (e.g., 'Total Cost') and select 'Properties'.
In the Properties window, select the 'Calculate' tab.
Choose the option 'Value is the product of the following fields'.
Click the 'Pick' button and select your Quantity and Unit Cost fields from the provided list, then click 'OK' and close the properties window.

Assign Numeric Prices to Dropdown Lists
Assign invisible numeric export values to dropdown options so they can be mathematically calculated when a user selects an item.
Troubleshoot Fields Remaining at Zero
Check document formatting and calculation orders if your total fields are failing to update correctly.
Build Smart PDF Forms with WPS Office
WPS Office provides advanced PDF editing tools that let you easily design interactive forms with text fields, dropdowns, and automatic calculations, matching industry standards.
- 1. Open Your PDF: Launch WPS Office and open your PDF document or create a new one.
- 2. Access Form Controls: Navigate to the 'Form' tab on the ribbon to access interactive form controls.
- 3. Insert Fields: Insert text fields for your quantities and dropdown menus for your unit costs.
- 4. Configure Properties: Double-click the fields to open their properties and configure automatic calculation rules.

Frequently Asked Questions
Why does my PDF form calculation show zero?
This usually happens if the input fields are not formatted as numbers under the 'Format' tab, if there are conflicting duplicate field names, or if the form's overall calculation order is forcing the total to calculate before the inputs are processed.
How do export values work in PDF dropdowns?
An export value acts as the hidden data assigned to a user's choice. By setting a dropdown item (like "Premium Plan") to have a numeric export value (like "99"), form calculations can use that hidden number for mathematical operations.
Can I use percentages in PDF form calculations?
Yes. You can manage percentages by setting the field format to 'Percentage' in the Properties menu. When dealing with taxes or discounts, you can multiply a subtotal field by your percentage field.




