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

Choice of recipients for submitting a completed form?

djb
Registered: Nov 30 2010
Posts: 4
Answered

I've been asked to create an online form that our firm's employees can fill out and click a button to submit to their supervisor (one of several departments within several different offices). Then the supervisor would fill out their part of the form and return it to the employee and also to Human Resources. Is there some way to give the person(s) filling out the form a choice of where to send the form, other than just copying it and sending it like a regular email attachment? The person who gave me this assignment is hoping for just one form that can do all of this.

My Product Information:
Acrobat Pro 9.0, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Accepted Answer
Sure. You could put the list of recipients in a combo box. The user could then select the recipient from the list and a script could be used to initiate the email with the document attached. The script could use the mailDoc JavaScript message after getting the email address. There are a number of posts here that use this approach that you can find with a search.
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi djb,

In addition to searching the forums, here are 2 tutorials on programming list fields and combo boxes that cover those concepts-

http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle/

http://acrobatusers.com/tutorials/2007/10/list_and_combo_in_lc

Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
djb
Registered: Nov 30 2010
Posts: 4
Thanks, George and Dimitri!
djb
Registered: Nov 30 2010
Posts: 4
I just thought of something else. When you say it will *initiate* the email, does that mean it gives the sender a chance to see the email before it's sent, or that it attaches the form and sends the email? Or does that depend on the script?
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
It can be done either way. The default is to initiate the email but not send it, giving the user a chance to view and modify before it is sent. It's possible to send without user interaction, but this requires installing a custom JavaScript on each user's machine that would allow for it. It's a security restriction.

For more information on the mailDoc method, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.505.php
djb
Registered: Nov 30 2010
Posts: 4
Great -- the default is what I'm interested in. Thanks again!
Dimitri, thanks for the tutorial links.