PDF Editing Issues

Add Service Costs and Dependent Drop-Downs to an Acrobat PDF Form

John WilsonJohn Wilson Nov 19, 2026 869 views

Question details

Create a fillable PDF form that displays a service cost when a user selects a service and can offer dependent service choices.

Add Service Costs and Dependent Drop-Downs to an Acrobat PDF Form
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.
Before you start

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.

Solution 1Recommended

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.

1
Create the service drop-down

In Prepare a form, add a drop-down field and name it Dropdown1 in its properties.

2
Add services and prices

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.

3
Create the cost field

Add a text field for the cost, open its Properties, and select Calculate. Choose Custom calculation script and click Edit.

4
Enter the calculation

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.

5
Format and test the form

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.

Display the selected service cost using export values
Viewer support: The calculation relies on PDF JavaScript. Test the saved form in the PDF viewer your recipients will use, because some viewers do not support Acrobat form scripts.
Free Microsoft Office alternative

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.

Open and work with PDF documents alongside your office filesCompatible with Microsoft Office formats including DOCX and XLSXFamiliar interface for a smoother transition from Microsoft OfficeFree, lightweight suite for everyday document work
QA img-9

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.