PDF Editing Issues

Calculate a PDF Form Total from a Dropdown Export Value in Adobe Acrobat

Kushani NimanthikaKushani Nimanthika Nov 18, 2026 868 views

Question details

Calculate a PDF form total by multiplying a dropdown option's numeric export value by the number of nights.

Calculate a PDF Form Total from a Dropdown Export Value in Adobe Acrobat
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.
Before you start

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.

Solution 1Recommended

Use Acrobat's built-in product calculation for the total

Use this method to calculate the total without writing JavaScript.

1
Open the form editor

Open the PDF in Acrobat and choose All tools > Prepare a form.

2
Check the dropdown values

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.

3
Check the nights field

Open the nights field's Properties and check its Format tab. Use a number format so users can enter the number of nights.

4
Set the total calculation

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.

5
Save and test the form

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.

Use Acrobat's built-in product calculation for the total
Display labels and export values: The dropdown can show a descriptive item while its numeric export value is used in the calculation. Use plain numeric export values rather than labels containing currency symbols or text.
Free Microsoft Office alternative

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.

Calculate room-rate totals with spreadsheet formulasOpen and edit Microsoft Excel XLSX filesWork with Word DOCX and PowerPoint PPTX formatsUse a familiar interface to move between documents and spreadsheets
microsoft office alternative - wps office

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.