PDF Editing Issues

How to Autofill an Address from a Dropdown Field in Adobe Acrobat

Steve KSteve K Nov 5, 2026 868 views

Question details

The user wants to automatically populate a specific address into a text field based on the office location selected from a dropdown list within a PDF form.

How to Autofill an Address from an Acrobat Dropdown Field
Product
Adobe Acrobat
Device & OS
not provided
Scenario
Creating interactive PDF forms with dynamic data mapping between fields.
Observed behavior
Requires a method or custom script to connect the dropdown selection to a corresponding address in a destination text field.
Before you start

Ensure you have access to the 'Prepare Form' tools in Adobe Acrobat Pro and make note of the exact field name of your dropdown list before proceeding.

Solution 1Recommended

Use a Custom Calculation Script (Recommended)

Assign export values to your dropdown options and use a brief JavaScript code in the destination text field to pull the selected data automatically.

This method requires setting the actual address as the 'Export Value' for each dropdown option, then using a custom calculation script in the target field to display that value.

1
Set Up Dropdown Options and Export Values

Open your PDF in Acrobat and enter 'Prepare Form' mode. Right-click your dropdown field, select 'Properties', and navigate to the 'Options' tab. Add the office location in the 'Item' box, and the corresponding full address in the 'Export Value' box. Click 'Add' for each location.

2
Access Destination Field Properties

Right-click the text field where you want the address to appear and select 'Properties'.

3
Add the Custom Script

Navigate to the 'Calculate' tab in the Properties window. Select 'Custom calculation script' and click the 'Edit' button.

4
Enter the JavaScript Code

Type the following script: event.value = this.getField("Dropdown1").value; (Be sure to replace "Dropdown1" with the exact name of your dropdown field). Click 'OK' and close the properties window to test the form.

Use a Custom Calculation Script (Recommended)
Field Name Sensitivity: JavaScript is case-sensitive. Ensure that the dropdown field name referenced in the script matches your actual form field name exactly, including capitalization and spacing.
Efficient PDF Form Editing

Easily Manage and Fill PDF Forms with WPS Office

WPS Office provides a comprehensive suite of PDF tools, allowing you to seamlessly view, fill, and edit interactive PDF forms. Whether dealing with complex scripts or standard dropdowns, WPS PDF handles standard form structures with ease.

  1. 1. Download and Launch: Download and install WPS Office on your device, then launch the application.
  2. 2. Open Your PDF Form: Select the 'PDF' tab and open the interactive PDF form you need to fill out or manage.
  3. 3. Interact with Form Fields: Click directly into text boxes, dropdowns, and checkboxes to fill out your form smoothly.
  4. 4. Save and Export: Once completed, save your changes or export the filled PDF to share securely with others.
Seamlessly fill and save interactive PDF formsHighly compatible with standard Adobe Acrobat PDF formatsLightweight application with an intuitive, user-friendly interfaceCross-platform support for Windows, Mac, and mobile devices
microsoft office alternative - wps office

Frequently Asked Questions

Why is the address field remaining blank after selecting a dropdown option?

This usually happens if the destination text field doesn't have the custom calculation script configured correctly, or if the dropdown field name referenced in the script does not exactly match the actual name of your dropdown field.

Can I use multiple dropdowns to autofill multiple text fields in the same form?

Yes, you can apply the same custom calculation method to multiple text fields. Just ensure each text field's calculation script references the specific dropdown field name associated with it.

Do I need Adobe Acrobat Pro to add calculation scripts?

Yes, adding or editing form fields and configuring properties like custom calculation scripts requires Adobe Acrobat Pro or an advanced PDF form editing software. Free PDF readers typically only allow you to fill out forms, not create them.