Keep Acrobat PDF Form Fields Editable After a Drop-Down Selection
Question details
Keep the attorney name drop-down and the automatically populated law firm field editable in an Acrobat PDF form.

- 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.
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.
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.
In Acrobat, open the PDF and choose All tools > Prepare a form. Open the properties of the law firm text field.
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.
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.
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.
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.

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.

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.




