PDF Editing Issues

Keep Acrobat PDF Form Fields Editable After a Drop-Down Selection

Emma BrownEmma Brown Nov 19, 2026 868 views

Question details

Keep the attorney name drop-down and the automatically populated law firm field editable in an Acrobat PDF form.

Keep Acrobat PDF Form Fields Editable After a Drop-Down Selection
Product
Adobe Acrobat PDF forms
Device & OS
not provided
Scenario
A user selects or enters an attorney name and wants the law firm field to populate while remaining available for manual edits.
Observed behavior
A calculation script populates the law firm field, but the user wants to edit that field afterward.
Before you start

Open the PDF in Adobe Acrobat and check the exact field names in Prepare a form. Confirm that the attorney name field is a drop-down and the law firm field is a text field.

Solution 1Recommended

Move the field update from calculation to validation

Use a validation script to update the law firm field when the attorney name is committed, rather than continuously recalculating the field.

The script below copies the attorney name field's value into the law firm field. If the law firm should differ from the attorney name, adapt the validation script to look up the appropriate firm instead.

1
Open the form editor

In Acrobat, open the PDF and choose All tools > Prepare a form. Open the properties of the law firm text field.

2
Remove the calculation

On the law firm field's Calculate tab, remove the calculation script and set the field to Value is not calculated. On the General tab, make sure Read Only is not selected.

3
Allow custom attorney names

Open the attorney name drop-down's properties. On the Options tab, enable Allow user to enter custom text, and make sure Read Only is not selected on the General tab.

4
Add the validation script

In the attorney name field's properties, open the Validate tab, select Run custom validation script, and choose Edit. Enter `this.getField("law firm").value = event.value;`, replacing `law firm` with the exact target field name if necessary.

5
Save and test

Save the PDF, exit form editing, and select or type an attorney name. Commit the entry by moving to another field, then manually edit the law firm field to confirm it remains editable.

Move the field update from calculation to validation
Later selections can overwrite manual edits: Changing and committing the attorney name again runs the validation script again, which can replace a manually entered law firm value.
Free Microsoft Office alternative

Work with PDF and Office files in WPS Office

WPS Office is a free, lightweight alternative for everyday document work, with a familiar interface and compatibility with common Office formats for easier migration. Use Adobe Acrobat to configure and test the form's JavaScript validation.

Open and review PDF documents alongside Office filesCompatible with Microsoft Word, Excel, and PowerPoint formatsFamiliar interface for everyday document tasksFree and lightweight office suite
QA img-9

Frequently Asked Questions

Why does the law firm field need a validation script instead of a calculation script?

A calculation script can run again when the form recalculates and overwrite a manual edit. Placing the update in the attorney name field's Validate tab runs it when that field's value is committed instead.

How do I let users type an attorney name that is not in the list?

In Acrobat's Prepare a form tool, open the attorney name drop-down's properties. On the Options tab, select Allow user to enter custom text.

Will the supplied script find the attorney's law firm automatically?

No. It copies the attorney name field's value into the law firm field. To populate a different firm name, the validation script needs logic that maps attorney names to firms.

Why was my manually entered law firm replaced?

If you change and commit the attorney name again, its validation script updates the law firm field again. Edit the law firm after making the final attorney selection, or adapt the script to preserve manual entries.