How to Make an Automatically Filled Acrobat Form Field Editable
Question details
The user needs to automatically copy data from one PDF form field to another, while still allowing the second field to be manually edited by respondents.

- Product
- Adobe Acrobat PDF Forms
- Device & OS
- not provided
- Scenario
- Creating interactive PDF forms where a secondary field (e.g., shipping address) shares the same initial value as a primary field (e.g., billing address), but requires the ability to be manually changed if needed.
- Observed behavior
- When applying a standard calculation script on the destination field, the script continuously executes and replaces any manual user input, effectively locking the field to the source field's value.
Ensure you have access to a robust PDF editor that supports JavaScript for form fields, and verify that the document's security settings permit editing and script execution.
Use a Custom Validation Script on the Source Field
Transfer the automated action from the destination field to the source field using a validation script, which only triggers upon data entry.
A standard calculation script runs continuously across the document, meaning it will instantly override any manual changes made to your destination field. By shifting the action to a custom validation script on the source field, the value is pushed to the destination only once when the first field is successfully updated. This leaves the second field open for manual edits afterwards.
Open your PDF form in your PDF editor (like Adobe Acrobat) and select the 'Prepare Form' tool from the menu to reveal all form fields.
Right-click the primary input field (e.g., 'Person1') that contains the data you want to copy, and select 'Properties'.
In the Properties dialog box, click on the 'Validate' tab and select the option for 'Run custom validation script'.
Click the 'Edit' button and input the following script: this.getField("Person2").value = event.value; (ensure you replace 'Person2' with the exact name of your destination field). Click 'OK' to save.
Close the form editing mode and type a value into the source field. Press Enter or click away to commit the value. The destination field will populate automatically, but you can still click into it and type a new value without it reverting.

Use a Checkbox to Trigger Auto-Population
Provide a manual checkbox (e.g., 'Same as Billing Address') that users can toggle to copy the data, giving them explicit control.
Handle Interactive PDF Forms with WPS Office
WPS Office provides a fully-featured PDF editor that makes filling, editing, and managing interactive PDF forms incredibly straightforward without needing heavy and expensive software.
- 1. Open your PDF file: Launch WPS Office and open your interactive PDF document containing the form fields.
- 2. Access form tools: Navigate to the 'Form' tab or the 'Edit' tab depending on your task to view available form filling and editing tools.
- 3. Fill or edit the fields: Simply click on any interactive field to input your data, or use WPS Premium features to modify the underlying form structure.
- 4. Save and export: Save your completed form. The document maintains strict formatting compatibility and can be opened flawlessly in any standard PDF reader.

Frequently Asked Questions
Why does a calculation script overwrite manual edits in my PDF form?
A calculation script in a PDF form is automatically triggered whenever any field in the entire document is modified. Because it constantly runs and recalculates, it overrides any manual inputs you make in the destination field, locking it to the scripted formula.
Can I use custom validation scripts to auto-fill multiple fields at once?
Yes. Within the source field's custom validation script window, you can add multiple lines of code to target different destination fields. For example, add 'this.getField("Field2").value = event.value;' and 'this.getField("Field3").value = event.value;' on separate lines.
Are PDF validation scripts compatible across different PDF readers?
Basic JavaScript functions like copying field values using 'event.value' are standard and widely supported across most major desktop PDF readers, including Adobe Acrobat and WPS Office PDF. However, some mobile PDF viewers or web browser extensions might not fully support interactive form scripts.




