How to Use a Field Value as a Dynamic PDF Submit Email Address
Question details
The user needs to send a completed PDF form to different email addresses based on a location selected from a drop-down field.

- Product
- PDF Editors
- Device & OS
- not provided
- Scenario
- Routing completed PDF form submissions dynamically to various email destinations based on user input in a form field.
- Observed behavior
- The submission URL must be constructed correctly to avoid errors, specifically managing the mailto: prefix dynamically without duplicating it.
Ensure your PDF document is opened in a PDF editor that supports form field editing and custom submit actions, and that you have the necessary permissions to modify the form properties.
Configure the Drop-down Field and Construct the URL Dynamically
Store only the raw email address in the hidden destination field and append the mailto: prefix dynamically during the submit action to prevent duplication errors.
When setting up a dynamic email submission in a PDF form, a common mistake is including the 'mailto:' prefix directly in the field's export value. If the submission script also adds this prefix, it results in an invalid URL (e.g., 'mailto:mailto:email@domain.com'). By keeping the field value clean, you can safely construct the final submission URL.
Create your drop-down field (e.g., 'Location') and enter your visible location names as the 'Item' names.
For each drop-down item, set the 'Export Value' to the corresponding target email address. Do not include the 'mailto:' prefix here (e.g., use 'manager@example.com').
Select your Submit button, open its Properties, navigate to the 'Actions' tab, and choose to execute a custom script or dynamically build the submission URL.
In your submit action configuration, ensure the script retrieves the value from the drop-down field and concatenates it with the prefix. The logic should form the string: 'mailto:' + dropdownFieldValue.
Create and Manage Interactive PDF Forms with WPS PDF
WPS Office includes a powerful PDF editor that allows you to effortlessly create interactive forms, add drop-down menus, and configure data submission settings for your professional documents.
- 1. Open WPS PDF: Launch WPS Office and switch to the PDF tab to open your document.
- 2. Access the Form tools: Navigate to the 'Form' tab on the top ribbon to reveal all interactive field options.
- 3. Insert a Drop-down Field: Click 'Combo Box' to draw a drop-down menu, double-click it, and add your locations and corresponding email addresses.
- 4. Add a Submit Button: Click 'Push Button' to create a submit button, open its properties, and configure the submit action to route to your desired email address.

Frequently Asked Questions
Why does my PDF submit button open a blank email or fail to send?
This often happens if the 'mailto:' prefix is duplicated or missing. Ensure your dynamic script adds the prefix to a raw email address, rather than adding it to an address that already contains the prefix.
Can I send a PDF form to multiple email addresses dynamically?
Yes. You can concatenate multiple email addresses separated by a comma or semicolon in your drop-down field's export value. When the URL is constructed, the email client will populate the 'To' field with all the specified addresses.
Do I need custom scripts to make a dynamic submit button in a PDF?
Generally, yes. While standard submit buttons can easily route to a static URL, dynamically changing the destination based on another form field's value typically requires applying a short custom script to the button's action properties.




