How to Send a PDF Form to a User-Entered Email Address
Question details
The user wants to set up a PDF form so that upon submission, the document or its data is routed to an email address that is dynamically typed into a specific field on the form.

- Product
- Device & OS
- not provided
- Scenario
- Creating an interactive PDF form that requires dynamic email routing based on user input, rather than a hardcoded email destination.
- Observed behavior
- The form needs to read the recipient's address directly from a designated email text field using a dynamic mailto submit action.
Ensure your PDF editing software supports interactive form creation and JavaScript, as dynamically routing form submissions requires scripting.
Configure a Dynamic Submit Button Using JavaScript
Use a custom JavaScript action on a submit button to read the email address from a form field and construct a mailto link dynamically.
Standard PDF submit actions usually require a fixed destination URL or email address. To make the destination dynamic, you must use document-level JavaScript attached to the button's action properties.
Open your PDF form in edit mode and insert a text field where the user will type their email address. Name this field specifically, for example, 'UserEmail'.
Insert a 'Push Button' form field onto your document to serve as the submit trigger for the user.
Right-click the newly created button, select 'Properties', and navigate to the 'Actions' tab.
From the 'Select Action' dropdown, choose 'Run a JavaScript' and click 'Add'.
Enter a script that retrieves the email value and triggers the submit form action. For example: var email = this.getField('UserEmail').value; this.submitForm({cURL: 'mailto:' + email});

Create and Manage Interactive PDF Forms with WPS Office
WPS Office provides robust PDF editing tools, allowing you to seamlessly create fillable forms, insert custom buttons, and manage dynamic submission actions.
- 1. Open Your Document: Launch WPS Office and navigate to the 'PDF' tab to open your existing document or create a new one.
- 2. Access Form Tools: Click on the 'Form' tab in the top ribbon to reveal the interactive form creation and editing tools.
- 3. Design the Form: Use the 'Text Field' and 'Push Button' options to layout your user input areas and submission triggers.
- 4. Configure Properties: Double-click your form fields to configure their names, appearance, and required actions.

Frequently Asked Questions
Why is my PDF form not sending the email when I click submit?
This usually happens if the user's default email client (like Outlook or Apple Mail) is not configured correctly on their device, or if the specific PDF reader they are using restricts interactive form scripts for security reasons.
Can I send the PDF form data without using an email client?
Yes. Instead of a 'mailto:' link, you can configure the submit button to send the form data to a secure web server URL (HTTP/HTTPS) using a POST request, which processes the data directly in the backend.
How do I make the email field mandatory before submission?
In the text field properties, you can check the 'Required' box. Alternatively, you can add custom validation to your submit button's JavaScript to verify if the email field is empty and alert the user before executing the submission.




