How to Calculate PDF Form Costs from Dropdown Selections
Question details
The user needs to create a dynamic, fillable PDF form that automatically displays prices and calculates a total based on options selected from a dropdown menu.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Creating a registration packet or order form where pricing dynamically changes based on the user's room or activity selections.
- Observed behavior
- The form needs to accurately fetch and apply the corresponding price for a selected dropdown item and automatically sum up these dynamic values into a final total field.
Ensure you are using a professional PDF editor that supports interactive form field creation, export values, and custom JavaScript computations, as basic PDF readers cannot configure these properties.
Use Export Values to Assign Prices to Dropdown Options
This is the most straightforward method. It allows you to assign a hidden numerical price to a text option (like a room name) so the PDF can calculate it automatically.
By setting export values, the visible dropdown option (e.g., 'Standard Room') acts as text for the user, but acts as a number (e.g., '150') for the form's calculation engine.
Open your PDF in Form Editing mode. Double-click the dropdown menu (combo box) field to open its properties dialog.
Navigate to the 'Options' tab. Input your Item Name (e.g., 'Deluxe Room'). In the 'Export Value' box, enter the numerical price (e.g., '200'). Click 'Add' and repeat for all options.
Double-click the text field where you want the total to appear. Go to the 'Calculate' tab and select 'Value is the sum (+) of the following fields'.
Click 'Pick' and check the box next to your dropdown menu field. Close the properties and test the form to ensure the total updates when selections change.

Use a Custom JavaScript Lookup Table
Ideal for complex forms where a single dropdown selection needs to determine prices for multiple different fields simultaneously (e.g., room cost and mandatory activity fees).
Create Dynamic Fillable PDF Forms with WPS Office
WPS Office provides robust PDF editing tools, allowing you to effortlessly design interactive, fillable PDF forms with complex calculations, dropdown menus, and text fields.
- 1. Open the Form Editor: Open your PDF document in WPS Office and navigate to the 'Form' tab on the top ribbon.
- 2. Insert Form Controls: Select 'Combo Box' to create your dropdown menus and add your items with their specific numerical export values.
- 3. Set Up Calculations: Add a 'Text Field' for your total, open its properties, and configure your calculation logic to sum up the dropdowns.

Frequently Asked Questions
Why isn't my PDF form total updating when I change the dropdown selection?
This usually happens because the calculation order is incorrect. The form might be trying to calculate the total before recognizing the new dropdown value. Check your PDF editor's form settings to adjust the calculation order so source fields calculate first.
Can I use text strings instead of numbers for PDF form calculations?
Standard PDF calculation formulas only work with numbers. If your dropdown items display text (like 'Conference Room'), you must assign numerical 'Export Values' to them or use custom JavaScript to translate that text into computable numbers.
Will these PDF calculations work if I send the form to someone else?
Yes, as long as the recipient opens the form in a standard PDF reader that supports JavaScript and dynamic interactive forms, such as WPS Office or Adobe Reader, the calculations will execute correctly. Note that some basic browser-based PDF viewers may not support form calculations.




