These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

E-Mail entire PDF to e-mail address specified in combo box in the PDF form.

Flash2009
Registered: Sep 7 2009
Posts: 11
Answered

Hello,
  
I'm having the following JavaScript problem and i'm hoping that someone
here can help me solve it.
 
In my PDF form is a combo-box containing names and e-mail addresses.
The persons name will be in the "Item" field, and his or her e-mail
address in the "Export value" field.
 
The PDF form also contains an "E-Mail" button, which uses the "mailto:"
command to mail the entire form to a e-mail address.
 
What i would like to do is the following.
 
A user selects a name from the pull-down menu in the combo-box.
When the correct person is selected, the user clicks the "E-Mail"
button in the PDF form.
 
The entire PDF form has then to be e-mailed to the e-mail address
belonging to the person selected in the combo-box.
 
After searching Google and this site, i found out that "Doc.MailDoc"
is the correct JavaScript command to do this.
I found some scripts but i didn't get them to work properly. :-(
 
How do i "link" the selected person / e-mail address from the combo-box
to the "Mailto" command specified in the "E-Mail button" ?
 
An pre defined subject line and body text would be great to have to.
 
Who can help me (I'm an JavaScript beginner) getting a sample script
and instructions how to do this ?
I'm using Acrobat Prof. 8.x, Form Designer, not LiveCycle.
 
Thanks. :-)
  
Flash
     

My Product Information:
Acrobat Pro 8.1.1, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Accepted Answer
Read these two articles, They explain it all and come with examples. You can also search this site for "Submit Email". You'll find plenty

http://acrobatusers.com/tutorials/modifying-livecycle-designer-form-submit-button
http://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script