Skip to main content
Known Participant
July 22, 2019
Question

Submit Form To a Selected Email from an Email List

  • July 22, 2019
  • 7 replies
  • 6010 views

Is there a way to submit a pdf form by selecting an email from a list of emails?

This topic has been closed for replies.

7 replies

Known Participant
July 29, 2019

Great!  Please provide specific details on how to setup this 'simple' script.

try67
Community Expert
Community Expert
July 29, 2019

It's explained very well in the tutorial above, but I'll reiterate. Let's say that field is called "ClientEmail". You can then use this code as the Mouse Up code of your Submit button to achieve it:

// Set the target email address based on the selection in the field

var cToAddr = this.getField("ClientEmail").value;

// Set the subject and body text for the email message

var cSubLine = "Form X-1 returned from client"

var cBody = "Thank you for submitting your form.\n" + "Save the filled form attachment for your own records"

// Send the entire PDF as a file attachment on an email

this.mailDoc({bUI: true, cTo: cToAddr, cSubject: cSubLine, cMsg: cBody});

Of course, change the subject line and message body to whatever text you wish to have in the email.

Known Participant
July 31, 2019

Thanks for your help!  This works perfectly.

Known Participant
July 29, 2019

On the fillable pdf form, is there a way to add the Submit button on the form to perform the following actions:

  1. User can click the submit button on the form to save the document to their computer
  2. User can submit form via email and have the option to select one of the emails listed from a popup screen (i.e. server1@gmail.com, server2@gmail.com, and server3@gmail.com) to send the form
  3. Form is sent to the email the user selected.

OR

Is there a simplier way to perform this task without using the Submit button?

try67
Community Expert
Community Expert
July 29, 2019

This is possible, but will require quite a complex script that uses a Dialog object to present the email addresses to the user.

A much simpler way is to place a drop-down field on the page itself, where the user can select the email address before clicking the Submit button. A simple script can then read the selected address and use it to generate an email with the PDF file attached to it.

Known Participant
July 29, 2019

Hi,

This is using the Submit button on the fillable pdf.

Known Participant
July 26, 2019

Hi,

I would send the form via email for users to complete; then they can send the completed form back via email by selecting one of the 3 emails from a list. If this is not an option then can you elaborate on the steps for Javascript.  Explain if I need to substitute the coding with the actual subject, etc.

The steps given prior is foreign to me.  If you can give specific details for the code for example:

Step 1 - Go to Properties and select the Action tab.

Step 2 - ....

try67
Community Expert
Community Expert
July 29, 2019

If you want more exact help you need to provide further details. What is this "list of emails", exactly? Is it a drop-down field? A list-box field? Something else?

Known Participant
July 23, 2019

Unfortunately, the steps provided is foreign to me.  What are the steps to follow for Adobe Acrobat Pro DC users in simplicity form?

Meenakshi_Negi
Legend
July 25, 2019

Could you please confirm if you trying to create a submit button to get the filled form via email?

Of you trying to submit a form via the email account?

It would be helpful if you can elaborate on the steps you are looking for.

Regards,

Meenakshi

Meenakshi_Negi
Legend
July 22, 2019

Hi Rh,

++Adding to the answer provided above, for any further assistance on creating and adding action to the PDF forms you can refer to the help document provided below:

- Setting action buttons in PDF forms, Adobe Acrobat

- How to create a form using Adobe Acrobat

Hope that helps.

Let us know if you have any questions.

Regards,

Meenakshi

try67
Community Expert
Community Expert
July 22, 2019