Fix Acrobat PDF Submit Button JavaScript Fails on iPad and Android
Question details
The user is attempting to submit a PDF form using a button linked to an SMB network path, which works on a desktop but fails on mobile devices.

- Product
- Adobe Acrobat Reader
- Device & OS
- iOS and Android
- Scenario
- A user clicks a JavaScript-enabled submit button within a PDF form on an iPad or Android tablet to send data to a local SMB network share.
- Observed behavior
- The form submission silently fails or encounters an error on mobile apps, despite working correctly when tested on a desktop computer.
Ensure you have access to a desktop PDF editor to modify the form fields and a reliable HTTPS server to handle form submissions.
Update the Submit Button to Use an HTTPS Endpoint
Mobile PDF readers do not support submitting forms to local SMB network shares. Switching to a secure web URL ensures cross-platform compatibility.
Mobile Acrobat apps have restricted JavaScript support compared to their desktop counterparts. Local network paths like SMB (Server Message Block) are blocked on iOS and Android for security and architectural reasons.
To ensure your form works across all devices, you must replace the local network share with a secure, internet-facing web endpoint (HTTPS).
Launch your desktop PDF editor (such as Acrobat Pro or WPS Office) and open the PDF document containing the problematic submit button.
Enter the form editing mode, right-click on the Submit button, and select 'Properties' from the context menu.
Navigate to the 'Actions' tab. Select your 'Submit a form' or 'Run a JavaScript' action and click Edit. Replace the SMB path (e.g., smb://server/path) with a valid HTTPS web server URL (e.g., https://yourdomain.com/submit).
Save the changes to the PDF file. Transfer the updated file to your iPad or Android device and test the submission using the exact mobile app your users will utilize.

Migrate to a Web-Based Form Submission Service
If setting up an HTTPS endpoint is challenging, utilizing a dedicated third-party web submission service provides an easy workaround.
Try WPS Office for Seamless PDF Editing and Form Handling
If you frequently encounter limitations and errors with traditional PDF software, WPS Office offers a powerful, lightweight, and completely free alternative. It provides excellent compatibility for viewing, editing, and managing interactive PDF forms across desktop and mobile devices seamlessly.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite on your desktop or mobile device.
- 2. Open Your PDF Form: Launch WPS Office and open your interactive PDF document using the built-in PDF viewer and editor.
- 3. Edit Form Properties: Navigate to the Form tab to select, modify, and manage your form buttons, ensuring your URLs are properly configured for mobile access.

Frequently Asked Questions
Why does my PDF JavaScript work on a PC but fail on an iPad?
Desktop PDF applications feature comprehensive JavaScript engines. In contrast, mobile apps like Acrobat Reader for iOS and Android utilize restricted versions of JavaScript APIs due to strict mobile OS security and performance policies.
Can I use an SMB network path for PDF form submissions on Android?
No. Standard mobile PDF readers do not support submitting data directly to local SMB network shares. You must configure the form to submit to an HTTP or HTTPS web endpoint instead.
How can I accurately test my PDF form for mobile users?
To ensure functionality, you must transfer the saved PDF document directly to an iOS or Android device and open it in the exact app (and version) your users will utilize. Desktop emulators often fail to replicate app-specific security restrictions.




