How to Rename a Signed PDF Based on Form Field Content in Acrobat
Question details
The user wants the software to automatically suggest or generate a filename based on the information entered into a specific form field when saving the PDF before applying an electronic signature.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Saving a fillable PDF form just before applying an electronic signature and needing a dynamic filename.
- Observed behavior
- Standard document scripts or actions cannot reliably preset the Save As filename, and the user is looking for a way to automate the naming process using form field data.
Ensure you have administrative access to the Adobe Acrobat installation folders on your computer, as automating this process requires installing a custom application-level JavaScript file.
Use Application-Level JavaScript to Rename the PDF
This is the only reliable method to extract form field data and suggest a specific filename before signing.
Because of security restrictions in Adobe Acrobat, a standard document-level script cannot silently save or suggest a specific filename during the signing process. To bypass this limitation, you must use an application-level (folder-level) script.
This script needs to be distributed and installed manually in the JavaScripts directory of the Adobe Acrobat application on every individual user's computer who will be processing these forms.
Write a custom .js file containing a script that extracts the target form field value using 'this.getField("YourFieldName").value'.
Add a trusted function to your script that uses 'app.execMenuItem("SaveAs")' or a custom save function to apply the extracted field data as the suggested filename.
Navigate to your Adobe Acrobat installation directory. On Windows, this is typically located at 'C:\Program Files\Adobe\Acrobat DC\Acrobat\JavaScripts'.
Place your custom .js file into the JavaScripts folder. You will need administrator privileges to modify this directory.
Restart Adobe Acrobat. The application will load the script upon startup, enabling the custom save-as behavior before you apply an electronic signature.
Edit, Fill, and Sign PDFs Easily with WPS Office
While advanced application-level scripting for automatic renaming requires complex setups in standard PDF readers, WPS Office offers a comprehensive, user-friendly suite for managing, filling, and signing PDF documents easily. It serves as a highly compatible, lightweight alternative to Microsoft Office and costly PDF editors.
- 1. Open your PDF: Launch WPS Office and open your fillable PDF form.
- 2. Fill form fields: Type the required information into the interactive form fields.
- 3. Apply your signature: Navigate to the 'Insert' tab, click on 'Sign', and place your electronic signature on the document.
- 4. Save with a custom name: Click 'Save As' and manually enter the critical form field data as your filename to keep your files organized.

Frequently Asked Questions
Can I use a document-level script to rename a PDF before signing?
No. Due to security restrictions designed to prevent malicious activity, document-level scripts and standard PDF actions cannot reliably preset the 'Save As' filename or execute silent saves during the signing workflow. An application-level script is strictly required.
Why do I have to save the PDF again after applying a signature?
Saving is mandatory after an electronic signature is applied to embed the signature data, lock the signed fields, and ensure the cryptographic integrity of the document so it cannot be tampered with.
Where do I place the application-level JavaScript file in Acrobat?
The script must be placed in the Acrobat JavaScripts folder on your local drive. For Windows users, this is typically found at 'C:\Program Files\Adobe\Acrobat DC\Acrobat\JavaScripts'. Mac users will find the folder within the application package contents.




