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

User Input Email Addresses....Simplified Method of Sending?

RadikulDude
Registered: Jul 27 2009
Posts: 14
Answered

I have searched, read, etc. and THOUGHT this would be an easy task. But apparently not. I have an Adobe form, created in LiveCycle that has text input boxes for the end user to enter two email addresses. I then want the user to be able to click a submit button that sends it to a predetermined email address (already have that working via the MailTo function,) AND the two email addresses the user input in the earlier step. WHY is this so hard? I have seen all types of scripting, tables, dropdowns, etc. but not a simple, clean and easy way of accomplishing this. ANY guidance would be greatly appreaciated.

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
This might be the thing you're looking for!

http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=17661

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

RadikulDude
Registered: Jul 27 2009
Posts: 14
Not really but close. Instead of typing addresses that then get used in a drop down, isnt there an easy way to just enter them into a text field that gets used in the submit button action?
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Ähm, that's quite the same as in the other thread! You only need to add some new variables for Cc and Bcc.

var myDoc = event.target;var addressTo = OneFieldInYourForm.rawValue;var addressCc = AnotherFieldInYourForm.rawValue;var addressBcc = OneMoreFieldInYourForm.rawValue;var sub = "Returned form....";var msgBody = "Hello,\n\Your text\nMore text...\n\nKind regards\n"; myDoc.mailDoc({bUI: false,cTo: addressTo,cCc: addressCc,cBcc: addressBcc,cSubject: sub,cMsg: msgBody,cSubmitAs: "PDF"});

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

RadikulDude
Registered: Jul 27 2009
Posts: 14
I think I see what you mean. I was looking at the original question involving dropdown boxes and not your reply. So, here is the "tough" part. I designed my form with LiveCycle anid it is pretty much drag and drop (ok, SIMPLE) so getting into program script is very new to me. I have changed some of the object layouts, etc. but have not inserted script into a button's actions. Can you give me a place to look so I can learn where to stick the code you sent? Looking at this makes me believe it is Java and not xml script. Correct? Thanks
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Ok, you can find alot of training material on this site.

AUC Learning Center
http://www.acrobatusers.com/learning_center/tutorials

Tutorial by Thom Parker specially for mailing tasks (with example files).
http://www.acrobatusers.com/tutorials/d … il-address

PS: For LiveCycle Forms you can only use the XFA-samples.

Ahh, I forgot.
Yes this is javaScript. Put it into the the click event of a regular button. ;-)

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

RadikulDude
Registered: Jul 27 2009
Posts: 14
Thanks a ton. I'll get reading some more.
RadikulDude
Registered: Jul 27 2009
Posts: 14
OK, got it to work, for the most part. New question, is there a way to use this code so that it doesnt go through outlook and try to match the email addresses to the end users contacts?