How to Use PDF Form Field Values in an Acrobat Mobile Filename
Question details
The user wants to enforce a file naming convention in the Acrobat iOS app by automatically generating filenames based on PDF form field values (such as company, site, and date).

- Product
- Adobe Acrobat Mobile
- Device & OS
- iOS
- Scenario
- Filling out PDF forms on a mobile device and attempting to use a button or script to automatically rename the saved file based on the inputted data.
- Observed behavior
- Acrobat Mobile does not support the JavaScript automation required to rename files locally, meaning scripts that work seamlessly on desktop fail to execute on iOS.
Keep in mind that mobile operating systems like iOS heavily restrict local file system access, preventing standard PDF JavaScript functions from automatically renaming and saving files directly on the device.
Submit the Form to a Server for Automated Renaming
Since local file renaming is restricted on mobile devices, the best approach is to submit the completed form to a web server that automatically processes and renames the file.
By offloading the renaming process to a backend server, you bypass iOS file system restrictions entirely. The mobile user simply fills the form and taps a submit button.
Open your PDF in a desktop PDF editor, go to the Form tools, and insert a 'Button' field onto the page.
Right-click the button, select Properties, and go to the Actions tab. Choose 'Submit a form' from the drop-down menu and click Add.
Type the URL of your backend script (e.g., a PHP or Node.js endpoint) and configure it to export the complete PDF document.
Write a server-side script that extracts the submitted form field values (like company and date) and saves the incoming PDF with the enforced naming convention on your server.

Use Desktop Acrobat for JavaScript Automation
Transfer the completed forms to a desktop computer where full JavaScript API support allows for automated file renaming.
Utilize Third-Party Mobile PDF Applications
Switching to alternative mobile applications that specialize in extended workflows can sometimes offer advanced submission capabilities.
Manage and Fill PDF Forms Easily with WPS Office
While automated JavaScript renaming is strictly limited by mobile operating systems, WPS Office provides a robust, lightweight, and completely free solution for viewing, filling, and managing PDF forms across all your devices. Enjoy high format compatibility, a familiar user interface, and seamless migration from other standard office software.
- 1. Download WPS Office: Install WPS Office from your device's app store or the official website.
- 2. Open Your PDF Form: Launch the app, tap 'Open', and select your interactive PDF form.
- 3. Fill and Save: Easily tap on form fields to fill out your data, then manually 'Save As' with your desired filename using the intuitive menu.

Frequently Asked Questions
Why doesn't PDF JavaScript work the same on mobile as on desktop?
Mobile operating systems like iOS and Android use strict app sandboxing for security. This restricts applications from arbitrarily accessing or modifying the local file system, which inherently breaks JavaScript functions that attempt to dynamically trigger 'SaveAs' commands.
Can I add a button to rename a file within the Acrobat iOS app?
No. Acrobat Mobile does not support the specific Document-Level JavaScript APIs required to extract field values and silently change the document's filename directly on the device.
Are there any mobile apps that fully support automated PDF renaming via embedded scripts?
True native automated renaming via embedded PDF JavaScript is universally restricted across major mobile platforms due to OS-level security policies. You must rely on server-side processing or manual renaming.
How can field workers easily enforce naming conventions on iPads?
The most effective workaround is to have field workers fill out the form locally and tap a 'Submit' button that sends the data to a company server. The server then automatically generates the final PDF and applies the correct naming convention based on the submitted field data.




