Calculate a PDF Form Total from a Dropdown Export Value in Adobe Acrobat
Question details
Calculate a PDF form total by multiplying a dropdown option's numeric export value by the number of nights.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A booking form displays descriptive room options while storing numeric room rates as dropdown export values.
- Observed behavior
- The total field should display the selected room rate multiplied by the number of nights, without displaying the export value in the dropdown.
Open the PDF in Adobe Acrobat and confirm that it has a dropdown field, a nights field, and a total field. The dropdown options need numeric export values, and the nights field should accept numeric input.
Use Acrobat's built-in product calculation for the total
Use this method to calculate the total without writing JavaScript.
Open the PDF in Acrobat and choose All tools > Prepare a form.
Open the dropdown field's Properties and select the Options tab. Give each descriptive item a numeric Export Value, such as 120 for a room rate of 120.
Open the nights field's Properties and check its Format tab. Use a number format so users can enter the number of nights.
Open the total field's Properties and select the Calculate tab. Choose Value is, select Product (x), and use Pick to select the dropdown and nights fields.
Close the form editor, save the PDF, select a room option, and enter a number of nights. Check that the total equals the option's export value multiplied by the nights.

Calculate Booking Totals in WPS Spreadsheets
WPS Office is a free, lightweight Office alternative with a familiar interface and Microsoft Office format compatibility for an easy move between apps. Use WPS Spreadsheets to calculate room rates and nights in a worksheet; configuring the PDF form calculation itself requires a suitable PDF form editor such as Acrobat.

Frequently Asked Questions
Can the dropdown show a room description instead of the rate?
Yes. In Prepare a form, open the dropdown's Properties > Options and enter a descriptive item with a separate numeric Export Value.
Do I need JavaScript to multiply the rate by the number of nights?
No. In the total field's Properties > Calculate tab, choose Value is, select Product (x), and pick the dropdown and nights fields.
Why is the total not calculating correctly?
Check the dropdown's Properties > Options for numeric export values, verify that the nights field contains a number, and confirm that both fields are selected under the total field's Calculate tab. Also test the saved PDF in a viewer that supports PDF form calculations.
Can I format the total as currency?
Yes. Open the total field's Properties, select the Format tab, and choose a number or currency format appropriate for the form.




