How to Fix PDF Submit Button Opening a Folder Instead of Saving
Question details
The user wants a PDF submit button to automatically save the completed form to a specific local directory or SharePoint location without user intervention.

- Product
- PDF Forms
- Device & OS
- not provided
- Scenario
- Clicking a configured submit button on a fillable PDF form with the intention of saving the document directly to a predefined path.
- Observed behavior
- The submit button opens a folder selection dialogue box, requiring the user to manually choose a destination and save the file, rather than saving it silently.
Before attempting to bypass the default save dialogue, verify that your PDF viewer supports document-level JavaScript execution and check your system's security policies regarding automated file writes.
Understand Default PDF Security and Submit Behavior
Review the standard behavior of PDF forms to understand why automatic saving is restricted by default.
By design, standard PDF software does not allow files to be silently saved to an arbitrary folder. This strict security protocol prevents malicious documents from writing unauthorized files to your computer.
When you configure a standard 'Submit a Form' action, the application purposely opens a dialogue box. This ensures the user has full control and awareness over where the filled document is stored on their local drive.
Enter form editing mode, right-click your submit button, and open its 'Properties'. Navigate to the 'Actions' tab to verify it is set to standard submission.
Instruct users to select their desired local folder or synced SharePoint directory when the standard save prompt appears.
Configure Custom JavaScript for Automatic Saving
Use a trusted folder-level JavaScript to bypass the save dialogue and specify an exact directory path for the completed PDF.
Easily Create, Fill, and Save PDF Forms with WPS Office
WPS Office provides robust PDF editing capabilities, allowing you to seamlessly create interactive forms, fill them out, and save them exactly where you need them without complex scripting.
- 1. Open Your PDF Form: Launch WPS Office and open your fillable PDF document using the built-in PDF viewer.
- 2. Fill in the Data: Click on the interactive form fields to enter your data, or use the 'Fill & Sign' tools for non-interactive forms.
- 3. Save to Local or Cloud Directory: Click 'Menu' and select 'Save As' to choose your exact local folder, or select 'Save to Cloud' to automatically upload the completed form to your WPS Cloud.

Frequently Asked Questions
Can I force a PDF to save directly to a SharePoint server using a button?
Standard PDF buttons cannot silently authenticate and write directly to a SharePoint library via HTTP. You generally need users to sync the SharePoint folder locally or utilize server-side processing.
Why does my email submission button work smoothly but local saving does not?
Email submission utilizes the 'mailto:' protocol, which safely hands the document over to your default email client. Silently writing files to a local disk is blocked by default to prevent malicious unauthorized actions.
Do folder-level JavaScripts work automatically on all operating systems?
No. File path structures differ significantly between Windows and macOS. A save script hardcoded with a specific operating system's directory structure will fail if executed on a different operating system.





