Add Service Costs and Dependent Drop-Downs to an Acrobat PDF Form
Question details
Create a fillable PDF form that displays a service cost when a user selects a service and can offer dependent service choices.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A form creator wants service selections to supply prices and determine which additional services are available.
- Observed behavior
- The completed form should display the selected service's cost and update additional choices according to the selection.
Open the PDF in Adobe Acrobat and select Prepare a form. Decide on unique field names and the service labels, numeric export values, and dependent choices you want to use.
Display the selected service cost using export values
Use this method when each service has a fixed price that should appear in a separate cost field.
In Prepare a form, add a drop-down field and name it Dropdown1 in its properties.
Open Dropdown1 Properties and select Options. Add each service as an item, enter its numeric cost as the Export Value, and click Add. For example, use Consultation as the item and 50 as its export value.
Add a text field for the cost, open its Properties, and select Calculate. Choose Custom calculation script and click Edit.
Enter `event.value = this.getField("Dropdown1").value;` in the script editor and confirm. If your drop-down has a different field name, replace Dropdown1 with that exact name.
On the cost field's Format tab, choose a number or currency format if needed. Select Preview, choose each service, and confirm that its export value appears as the cost.

Populate an additional drop-down from the selected service
Use a field action when the available additional services depend on the main service selection.
Work with PDF and Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with Office documents and PDFs. Its format compatibility helps you move existing files into your workflow. Use Adobe Acrobat for the custom form scripts described above; WPS does not fix or replace Acrobat's scripting features.

Frequently Asked Questions
Why does the cost field show the service name instead of its price?
Open the service drop-down's Properties and check Options. Each item needs a numeric Export Value; the cost calculation reads the field value rather than looking up the displayed label.
How do I show the cost as currency?
Open the cost text field's Properties, select Format, and choose a number or currency format. Keep the drop-down export values numeric so the field can format them consistently.
When does the dependent drop-down update?
With the On Blur action in this example, it updates after the user leaves the main drop-down. Test this behavior using Preview in Prepare a form.
Will the scripts work in every PDF viewer?
No. Some PDF viewers do not support Acrobat form JavaScript. Save the form and test its calculations and drop-down actions in the viewer intended for recipients.




