How to Multiply Quantity by Price in an Acrobat PDF Form
Question details
The user needs to configure a PDF form to automatically multiply an inputted quantity by a fixed item price to display the total cost.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating an interactive PDF invoice or order form where the total price needs to calculate automatically based on the quantity entered by the user.
- Observed behavior
- The form currently does not calculate the total. A cost field must be set up to display the product of the quantity field multiplied by a fixed value (e.g., 7.00) without using complex scripts.
Ensure you are using Adobe Acrobat Pro or a similar advanced PDF editor, and verify that your form already contains a designated text field for the 'Quantity'.
Configure Simplified Field Notation for Multiplication
Use Acrobat's built-in simplified calculation settings to automatically multiply the quantity by a fixed price.
You do not need to write complex JavaScript code to perform basic multiplication in PDF forms. Acrobat offers simplified field notation that easily handles basic arithmetic between fields and fixed numbers.
Launch your document in Adobe Acrobat, navigate to the 'Tools' menu, and select 'Prepare Form' to enable form editing.
Right-click the text field where you want the calculated total to appear (e.g., 'Total Cost') and choose 'Properties' from the context menu.
In the Text Field Properties dialog box, click on the 'Calculate' tab to view the formula options.
Choose the 'Simplified field notation' option and click the 'Edit...' button to open the equation window.
Type your calculation, such as 'Quantity * 7.00' (replace 'Quantity' with the exact name of your quantity field), and click 'OK' to save.

Fill and Manage PDF Forms with WPS Office
WPS Office offers a comprehensive and lightweight PDF toolkit that allows you to effortlessly interact with, edit, and fill out smart PDF forms, boosting your document productivity.
- 1. Open Your PDF Form: Launch WPS Office and open your interactive PDF form document within the WPS PDF viewer.
- 2. Input Your Data: Click on any interactive text box, such as the Quantity field, to type in your data.
- 3. Review Automatic Calculations: Press Enter or click outside the box; pre-configured fields will automatically display the calculated totals.
- 4. Save the Document: Click 'File' and select 'Save As' to export your completed form with all the filled data preserved intact.

Frequently Asked Questions
Why isn't my PDF form calculation updating when I enter a quantity?
Your form calculation settings might be disabled. In Acrobat, go to Edit > Preferences > Forms and ensure the 'Automatically calculate field values' option is checked.
How do I format the total field to display as currency?
Open the Text Field Properties for your total field, navigate to the 'Format' tab, select 'Number' from the category dropdown, and then choose your desired currency symbol and decimal places.
Can I use custom JavaScript if my pricing structure is more complex?
Yes. If your pricing involves bulk discounts or conditional tax rates, you can go to the Calculate tab, select 'Custom calculation script', and write standard JavaScript to handle complex logic.
Is it possible to calculate the product of multiple fields instead of a fixed price?
Yes. In the Calculate tab, select 'Value is the [product] of the following fields', click the 'Pick' button, and check the boxes for all the fields you want to multiply together.




