PDF Editing Issues

How to Automatically Move Overflow Text to Another PDF Field in Acrobat

Kushani NimanthikaKushani Nimanthika Oct 28, 2026 869 views

Question details

The user wants to automatically transfer text that exceeds a specific character limit from one PDF form field into a second field.

How to Automatically Move Overflow Text to Another PDF Form 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.
Before you start

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.

Solution 1Recommended

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.

1
Enter Prepare Form Mode

Open your PDF in Adobe Acrobat Pro, click on the 'Tools' menu, and select 'Prepare Form' to enable form editing.

2
Open Field Properties

Right-click the first text field where users will type and select 'Properties'.

3
Navigate to the Format Tab

Click on the 'Format' tab, select 'Custom' from the 'Select format category' dropdown menu, and click the 'Edit' button next to 'Custom Keystroke Script'.

4
Input the 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.

5
Enable Multi-line Support

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.

Add a Custom Keystroke JavaScript to the Form Field
Scripting Knowledge Required: Basic JavaScript knowledge is necessary to ensure the exact field names in your specific PDF document are correctly mapped in the code.
Free Microsoft Office alternative

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.

Easily view, fill, and sign PDF forms with an intuitive, user-friendly interface.Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx) and standard PDF files.Lightweight application that runs smoothly on Windows, Mac, Linux, and mobile devices.Cost-effective solution offering robust PDF conversion, merging, and editing tools.
microsoft office alternative - wps office

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.