PDF Editing Issues

How to Create a PDF Form Button for Saving, Emailing, and Payment

Jason MillerJason Miller Oct 28, 2026 868 views

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.

How to Create a PDF Form Button for Saving, Emailing, and Payment
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.
Before you start

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.

Solution 1Recommended

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.

1
Add a Button to the Form

Open your PDF form editor, select the 'Button' tool from the Form menu, and draw the button onto your document page.

2
Access the Actions Tab

Right-click the newly created button, select 'Properties' from the context menu, and navigate to the 'Actions' tab.

3
Select JavaScript Action

In the 'Select Action' dropdown menu, choose 'Run a JavaScript', and then click the 'Add' button to open the script editor window.

4
Input the Custom Script

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.

Use PDF JavaScript to Automate Multiple Button Actions
Security Prompt Warning: Modern PDF readers have strict security settings. Users may see warning pop-ups asking them to allow the document to connect to the internet or open their local email application.
Efficient PDF Form Editing

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. 1. Open your PDF: Launch WPS Office and open your existing PDF document.
  2. 2. Navigate to the Form Tab: Click on the 'Form' tab in the top ribbon to access the interactive form controls.
  3. 3. Insert a Button: Select the 'Button' tool and click on the document where you want the submit button to appear.
  4. 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.
Easily add and configure interactive form buttons without hassleSupport for various PDF form field types and propertiesFully compatible with standard Adobe PDF formats and readersLightweight, fast, and feature-rich document editing suite
microsoft office alternative - wps office

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.