Other PDF Issues

How to Send PDF Forms to Multiple Emails from a List Box in Acrobat

John WilsonJohn Wilson Nov 24, 2026 868 views

Question details

The user wants to know how to allow a PDF form user to select multiple email addresses from a list box and send the completed form to all selected recipients using JavaScript.

How to Send PDF Forms to Multiple Emails Selected from a List Box in Adobe Acrobat
Product
Adobe Acrobat
Device & OS
not provided
Scenario
Creating an interactive PDF form where users can select multiple recipients from a list box to submit the form via email.
Observed behavior
The user needs the correct JavaScript code to capture multiple selections from a list box and pass them to the mailDoc method.
Before you start

Ensure you have Adobe Acrobat Pro installed, as Adobe Reader does not allow you to add or edit JavaScript actions on form fields. Verify that your list box field is configured to allow multiple selections.

Solution 1Recommended

Add Custom JavaScript to the Submit Button

Use a custom JavaScript action on the Mouse Up event of a button to gather selected emails, format them as a semicolon-separated string, and trigger the email client.

To achieve this, you need to extract the values from the list box. If multiple items are selected, Adobe Acrobat returns an object (an array of strings). If only one item is selected, it returns a string. The script handles both scenarios before passing the result to the mailDoc function.

1
Enable Multiple Selection

Right-click your List Box field (e.g., 'EmailsListBox') and select 'Properties'. Go to the 'Options' tab and check the 'Multiple selection' box so users can choose more than one email.

2
Add a Submit Button

Add a new Button field to your PDF form. Right-click it, select 'Properties', and navigate to the 'Actions' tab.

3
Set the Action Trigger

Choose 'Mouse Up' as the Select Trigger, and select 'Run a JavaScript' from the Select Action dropdown. Click the 'Add' button to open the JavaScript Editor.

4
Enter the JavaScript Code

In the editor, input the following code: var emails = this.getField('EmailsListBox').value; if (typeof emails == 'object') { emails = emails.join(';'); } else { emails = '' + emails; } this.mailDoc({cTo: emails});

5
Save and Test

Click 'OK' to close the editor, then close the properties dialog. Save your PDF. Test the button by selecting multiple emails (using Ctrl/Cmd + Click) and clicking the submit button to ensure it opens your email client with the correct addresses.

Add Custom JavaScript to the Submit Button
Email Client Requirement: The mailDoc method relies on the user's default desktop email client (like Outlook, Thunderbird, or Apple Mail) being properly configured on their machine to generate the draft email.
Free Microsoft Office alternative

Try WPS Office for Comprehensive PDF and Document Management

While advanced JavaScript form scripting is specific to Adobe Acrobat, WPS Office provides a powerful, free alternative for everyday PDF editing, form filling, and document creation. It seamlessly handles Word, Excel, PowerPoint, and PDF files in one lightweight application.

  1. 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
  2. 2. Open Your PDF Form: Launch WPS Office and open your PDF document directly within the application to access the PDF viewer and editor.
  3. 3. Fill and Share: Use the built-in PDF tools to fill out standard form fields, add digital signatures, and share the document via email with a single click.
Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx) and standard PDFs.Easily fill out, sign, and share PDF forms without complex scripting.Lightweight software with a familiar UI that runs smoothly on Windows, Mac, and Linux.Built-in PDF to Word/Excel conversion tools for seamless document workflows.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my JavaScript mailDoc function not opening an email draft?

This usually happens if the user does not have a default desktop email client configured on their operating system, or if their specific PDF viewer restricts email actions for security reasons. Web-based email clients like Gmail cannot be directly triggered by mailDoc without extra configuration.

Can I use this JavaScript in the free Adobe Reader?

End users can execute the script in the free Adobe Reader to send the email, provided the form rights are properly extended. However, you must use Adobe Acrobat Pro to create the form, configure the list box, and write the JavaScript code.

How do users actually select multiple items in the PDF list box?

Users can select multiple items by holding down the 'Ctrl' key (on Windows) or the 'Command' key (on Mac) while clicking the desired email addresses in the list box.

Can I add a pre-filled subject and body message to the mailDoc script?

Yes, you can expand the mailDoc parameters in your JavaScript. For example, replace the last line with: this.mailDoc({cTo: emails, cSubject: "Space A Request", cMsg: "Please confirm upon receipt. Thank You."});