How to Automatically Move Overflow Text to Another PDF Field in Acrobat
Question details
The user wants to automatically transfer text that exceeds a specific character limit from one PDF form field into a second field.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating or formatting fillable PDF forms where the text entry space is limited per field.
- Observed behavior
- Standard PDF field character limits restrict input but do not automatically move the overflow text to the next designated field without a custom script.
Ensure you are using Adobe Acrobat Pro to author the form, as the free Reader version does not support creating or editing JavaScript validations. Also, take note of the exact names of both the source and destination text fields.
Add a Custom Keystroke JavaScript to the Form Field
Since standard properties cannot auto-flow text, you must apply a custom JavaScript keystroke script to the first field to handle the character limit and overflow.
This method uses a script that monitors the text being entered in real-time. Once it hits your defined character limit (e.g., 190 characters), it automatically splits the excess text and populates it into your designated second field.
Open your PDF in Adobe Acrobat Pro, click on the 'Tools' menu, and select 'Prepare Form' to enable form editing.
Right-click the first text field where users will type and select 'Properties'.
Click on the 'Format' tab, select 'Custom' from the 'Select format category' dropdown menu, and click the 'Edit' button next to 'Custom Keystroke Script'.
Enter your JavaScript code to monitor text length. Use a script that checks if event.value.length exceeds 190 characters, and if so, sets the value of the second field using this.getField('SecondFieldName').value.
Go to the 'Options' tab for both the first and second form fields and check the 'Multi-line' option so the text wraps properly within the boundaries of the boxes.

Edit PDFs and Office Documents Seamlessly with WPS Office
While advanced JavaScript form scripting requires specialized software, WPS Office provides a lightweight, free, and highly compatible suite for all your daily PDF editing, form filling, and document creation needs. Enjoy a familiar UI and seamless migration from other platforms without the hefty subscription fees.

Frequently Asked Questions
Can I link PDF form fields to auto-flow text without using JavaScript?
No, standard PDF form settings do not include a built-in 'linked text box' or 'text overflow' feature found in desktop publishing software. Custom JavaScript is the only way to achieve this functionality in a fillable PDF.
Why is my JavaScript not moving the text to the second field?
Ensure that the field name referenced in your script exactly matches the actual name of the second field, including exact case sensitivity. Additionally, verify that JavaScript execution is enabled in your PDF viewer's security preferences.
Does this text overflow script work on mobile PDF readers?
Most mobile PDF viewers have limited or no support for custom JavaScript embedded in PDF forms. This script is most reliable when users fill out the form on a desktop using dedicated PDF software like Adobe Acrobat or Adobe Reader.




