PDF Editing Issues

How to Rename a Signed PDF Based on Form Field Content in Acrobat

Jason MillerJason Miller Nov 5, 2026 870 views

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.

How to Rename a Signed PDF Based on Form Field Content
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.
Before you start

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.

Solution 1Recommended

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.

1
Create a custom JavaScript file

Write a custom .js file containing a script that extracts the target form field value using 'this.getField("YourFieldName").value'.

2
Incorporate a trusted function

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.

3
Locate the JavaScripts folder

Navigate to your Adobe Acrobat installation directory. On Windows, this is typically located at 'C:\Program Files\Adobe\Acrobat DC\Acrobat\JavaScripts'.

4
Install the script

Place your custom .js file into the JavaScripts folder. You will need administrator privileges to modify this directory.

5
Restart Acrobat

Restart Adobe Acrobat. The application will load the script upon startup, enabling the custom save-as behavior before you apply an electronic signature.

Mandatory Saving Requirement: Even with custom scripting, Adobe Acrobat requires the document to be saved immediately after an electronic signature is applied to lock the fields and ensure cryptographic document integrity.
Free Microsoft Office alternative

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. 1. Open your PDF: Launch WPS Office and open your fillable PDF form.
  2. 2. Fill form fields: Type the required information into the interactive form fields.
  3. 3. Apply your signature: Navigate to the 'Insert' tab, click on 'Sign', and place your electronic signature on the document.
  4. 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.
Free and lightweight office suite with robust built-in PDF editing capabilitiesHighly compatible with standard PDFs and Microsoft Office formats (Word, Excel, PowerPoint)Easily fill interactive PDF forms and apply electronic signatures securelyUser-friendly interface requiring no advanced JavaScript knowledge to manage documents
microsoft office alternative - wps office

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.