How to Create a PDF Form Button for Saving, Emailing, and Payment
Question details
The user needs to configure a single PDF form button to perform three tasks at once: save the completed form, attach it to an email, and redirect the user to a payment webpage.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Designing an interactive PDF form for client submissions where users must submit their data and proceed to checkout smoothly.
- Observed behavior
- The user is seeking to understand whether standard multiple actions or a custom PDF JavaScript is required to successfully chain saving, emailing, and URL redirection on a single button click.
Ensure your PDF editor supports JavaScript and interactive form field configuration. Keep in mind that executing external links and emails may trigger security prompts depending on the user's PDF reader settings.
Use PDF JavaScript to Automate Multiple Button Actions
Applying a custom JavaScript provides the maximum flexibility needed to handle saving, emailing, and dynamic payment URL redirection in a single click.
Using JavaScript is the most reliable method when you need to execute complex, sequential tasks in a PDF. A script allows you to pass dynamic variables, such as pulling a specific payment amount from a form field and appending it to the payment URL.
Open your PDF form editor, select the 'Button' tool from the Form menu, and draw the button onto your document page.
Right-click the newly created button, select 'Properties' from the context menu, and navigate to the 'Actions' tab.
In the 'Select Action' dropdown menu, choose 'Run a JavaScript', and then click the 'Add' button to open the script editor window.
Enter the JavaScript code to execute the desired sequence. You will typically use 'app.execMenuItem("Save")' to save, 'doc.mailDoc(...)' to trigger the email client, and 'app.launchURL(...)' to open the payment gateway. Click 'OK' to save the script.

Add Multiple Standard Actions Without Scripting
If you are unfamiliar with code, you can stack native actions on a single button, though dynamic URL parameters (like changing payment amounts) will not be supported.
Create Interactive PDF Forms with WPS Office
WPS Office PDF Editor provides an intuitive interface to add and configure interactive form controls, including buttons, text fields, and checkboxes. You can easily set up multi-action buttons to streamline document collection and payment redirection.
- 1. Open your PDF: Launch WPS Office and open your existing PDF document.
- 2. Navigate to the Form Tab: Click on the 'Form' tab in the top ribbon to access the interactive form controls.
- 3. Insert a Button: Select the 'Button' tool and click on the document where you want the submit button to appear.
- 4. Configure Properties: Double-click the button to open its properties menu and navigate to the Actions tab to set up your save, email, and link functions.

Frequently Asked Questions
Why isn't my PDF button sending the email?
The user's default email client might not be configured properly on their operating system, or the PDF reader's enhanced security settings are blocking the 'mailto:' action. Ensure users open the PDF in a dedicated reader rather than a browser.
Can I pass a dynamic payment amount to the website URL?
Yes. By using PDF JavaScript instead of standard actions, you can retrieve the value from a specific form field (e.g., a 'Total' field) and append it as a parameter to the payment URL before launching it.
Do multi-action PDF buttons work on mobile devices?
Support is highly variable. Complex JavaScript and stacked actions often have limited or no support on default mobile PDF viewers (like iOS Preview or standard Android viewers). It is highly recommended to test your form on the Adobe Acrobat mobile app or other robust PDF readers.




