Fix Acrobat PDF Form Saving Blank and Losing Entered Data
Question details
Users are experiencing an issue where fillable PDF forms save or email as blank, losing all the data entered into text fields and dropdowns.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Field technicians are filling out PDF forms containing dropdowns and text fields, then saving or emailing them to others.
- Observed behavior
- The saved or emailed PDF document loses the entered information and appears blank. This is often caused by document-level JavaScript resetting field values upon opening the file.
Ensure you have a backup copy of your original unfilled PDF form before editing scripts, and verify whether recipients are opening the file in a dedicated PDF reader rather than a web browser preview.
Remove or Modify Document-Level JavaScript
Prevent JavaScript from automatically resetting dropdowns and text fields every time the PDF is opened.
Document-level scripts that execute on document open often use the setItems method to populate dropdowns. If left in the document's startup routine, this script runs every time the file is opened, defaulting the user's selection back to the first item and effectively blanking it out.
Open the fillable PDF form in Adobe Acrobat. Navigate to the 'Tools' menu and select 'JavaScript'.
Click on 'Document JavaScripts' from the toolbar to view all scripts set to run when the document opens.
Locate the script responsible for setting field items (e.g., using setItems) and delete it. This prevents it from overwriting entered values upon opening.
If you need to populate the dropdowns, open the JavaScript Console (Ctrl+J or Cmd+J), paste your setup script, and execute it once. Then save the document.

Use a Dedicated PDF Reader Instead of a Browser
Avoid using web browsers or generic preview apps to fill out interactive PDF forms, as they may fail to save form data.
Seamlessly Fill and Save PDF Forms Using WPS Office
WPS Office offers robust PDF tools that fully support fillable forms, ensuring your entered data is securely saved without unexpected blanking issues. It perfectly handles interactive PDF elements natively.
- 1. Open PDF Form in WPS Office: Launch WPS Office and open your fillable PDF document.
- 2. Fill in the Data: Click directly on the text fields or dropdown menus to accurately enter your data.
- 3. Save the Document: Go to 'Menu' and select 'Save As' to securely save the completed form with all data intact locally.
- 4. Share the Completed Form: Use the built-in 'Share' feature to immediately send the filled PDF directly to your team or clients.

Frequently Asked Questions
Why does my filled PDF look blank when opened in a web browser?
Web browsers like Chrome or Edge use built-in, simplified PDF viewers that often lack full support for interactive PDF forms or complex JavaScript. This can cause filled fields to appear blank. You should always open and save fillable forms using a dedicated PDF reader.
How do I run a JavaScript setup script only once in a PDF?
Instead of adding the code to Document JavaScripts (which triggers every time the document opens), press Ctrl+J (Windows) or Cmd+J (Mac) in Acrobat to open the JavaScript Console. Paste your script there, highlight it, and press Enter (on the numeric keypad) to execute it once.
What does the 'setItems' method do in PDF JavaScript?
The 'setItems' method populates a dropdown list or list box with an array of predefined values. If this script runs automatically when the document opens, it resets the user's previous selection to the default (usually the first item in the array), making the field look blank.
Can I recover data from a PDF that saved as blank?
If the file was saved over with the fields reset by a script, the originally entered data is generally lost within that file. It is best to fix the script issue and ask the user to re-enter the data, or check if an older file version is available through your operating system's file history.




