How to Link Acrobat PDF Text Fields with Different Font Sizes
Question details
The user needs to duplicate the value entered in one PDF text field into another field while maintaining different font sizes for each.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating an interactive PDF form where the same text input must appear in multiple locations but requires distinct formatting in each location.
- Observed behavior
- When text fields share the same name, they mirror the entered text perfectly, but changing the font size or properties of one field automatically forces the identical font size on the other field.
Ensure you have access to a PDF editor that supports form creation, property editing, and custom JavaScript validation, such as Adobe Acrobat Pro.
Use Separate Field Names and a JavaScript Validation Script
By giving each text field a unique name, you can format their font sizes independently. A simple script ensures the text entered in the first field is automatically copied to the second.
In PDF forms, fields with the exact same name are treated as cloned instances of the same object, meaning they share all properties, including font sizes. To separate their appearance, they must have distinct names and be linked via code.
Open your PDF in form editing mode. Right-click your text fields and ensure they have distinct names (e.g., 'Field1' for the primary input and 'Field2' for the duplicate display).
Right-click each field individually, select 'Properties', navigate to the 'Appearance' tab, and set your desired font sizes. Because the names are different, these settings will no longer overwrite each other.
Right-click the primary field ('Field1') where the user will type the text, select 'Properties', and navigate to the 'Validate' tab.
Select the 'Run custom validation script' option and click the 'Edit' button. Enter the following code: this.getField("Field2").value = event.value; (replace "Field2" with the actual name of your second field), then click 'OK' and close the properties window.

Create and Format Interactive PDF Forms with WPS Office
WPS Office provides a comprehensive PDF Editor that allows you to easily create interactive forms, add text fields, and customize font sizes and properties to meet your document formatting needs.
- 1. Open your PDF in WPS Office: Launch WPS Office and open your PDF document. Navigate to the 'Form' tab on the top ribbon.
- 2. Add Text Fields: Click on 'Text Field' in the toolbar and draw the boxes on your document where you need to collect user input.
- 3. Customize Field Properties: Double-click or right-click the text field and select 'Properties' to adjust the font size, alignment, and other visual settings independently for each field.

Frequently Asked Questions
Why do two PDF fields change simultaneously when I edit the properties of one?
In PDF forms, if multiple fields share the exact same name, they are treated as copies of the same variable. Any property changes (like font size) or data entered in one will automatically mirror in the other.
Can I link more than two text fields using the JavaScript method?
Yes. You can add multiple lines of code to the validation script of your primary field. For example, add this.getField("Field3").value = event.value; on a new line for each additional field you want to update automatically.
Does this JavaScript validation work in all PDF viewers?
While standard PDF editors like Adobe Acrobat and full-featured desktop viewers support JavaScript, some basic web browsers or default mobile PDF readers may restrict or fail to execute custom validation scripts.




