How to Keep Imported PDF Form Data Available on Mobile Devices
Question details
The user needs to find a way to make imported form data available in a PDF on mobile devices after the standard import button fails.

- Product
- Device & OS
- Mobile
- Scenario
- Attempting to use a JavaScript button in a PDF to import standard timesheet data from a local file while using a mobile device.
- Observed behavior
- The import button functions correctly on a laptop but fails on mobile devices because mobile PDF viewers restrict access to local files and limit JavaScript support.
Check which mobile PDF viewer you are currently using, as mobile operating systems strictly sandbox apps and restrict their ability to access local device storage.
Embed Standard Values Directly in the PDF Form
Bypasses the need to import an external data file by hardcoding the required timesheet data directly into the PDF fields.
Mobile platforms restrict external file access for security reasons. By integrating the data directly into the form itself, you eliminate the need for the mobile app to read an external local file.
Launch your desktop PDF editing software and open the original PDF timesheet form.
Remove the JavaScript import button. Use the 'Prepare Form' or 'Form Fields' tool to add dropdown menus or hidden text fields containing the standard data.
Save the modified PDF document and send it to your mobile device via email or cloud storage. The data will now be native to the form and accessible on any mobile viewer.

Use an Advanced Third-Party Mobile PDF Viewer
Some premium mobile PDF apps offer broader support for JavaScript and internal local storage management.
Migrate to a Mobile-Friendly Form Service
Converts the static PDF workflow into a dynamic web-based form that inherently supports mobile data retrieval.
Fill and Manage PDF Forms on Mobile with WPS Office
While mobile operating systems restrict advanced JavaScript imports, WPS Office offers a seamless alternative for managing your PDF forms. By utilizing WPS Cloud, you can pre-fill your standard timesheet data on a PC and instantly access the ready-to-use forms on your mobile device without relying on complex scripts.
- 1. Install WPS Office Mobile: Download and install the free WPS Office app from the App Store or Google Play Store.
- 2. Upload pre-filled forms: On your computer, open WPS Office and save your pre-populated PDF timesheet directly to WPS Cloud.
- 3. Access on mobile: Open the WPS Office mobile app, log in to your account, and navigate to the Cloud tab to locate your PDF.
- 4. Fill the form: Tap on the PDF to open it, tap on the remaining empty form fields to enter your daily hours, and save the document.

Frequently Asked Questions
Why do PDF JavaScript buttons work on a PC but not on a mobile device?
Mobile operating systems like iOS and Android run applications in strict sandboxed environments. This restricts apps from accessing local system files and limits the execution of complex JavaScript for security reasons.
Can I use Acrobat JavaScript to access local mobile storage?
Generally, no. Most mobile PDF viewers disable or block file-access JavaScript functions, such as importDataObject, to comply with strict mobile OS security policies.
Are there any mobile PDF apps that fully support Adobe JavaScript?
Support is highly fragmented across mobile apps. While premium apps might support basic form calculations and validations, advanced file-system scripts are universally restricted on mobile platforms.




