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

Submitting form with a dynamic email address

martre
Registered: May 15 2008
Posts: 6
Answered

Hi all

Not sure if the subject is right but here goes, first let me say that I'm frustrated with a good product that seems to be harder to use than it should be. ok now for my question.

I've created a form with Adobe LiveCycle Designer 8.0, just a basic one. A textbox, and an email field and a button which acts as a submit button. (has the mailto:email [at] somewhere [dot] com)

The button works fine, but what I really want it to do is to be able to email the form as a PDF and use the email address in the email box field on the form.

How is this done.?

thanks in advance
martin.T

My Product Information:
LiveCycle Designer, Windows
LynPrice
Registered: Jan 3 2006
Posts: 9
Instead of using "Submit" as the control type, use "Regular" and put the following script under the click event:

event.target.submitForm({cURL:"mailto:"+*Email Fields Binding Name*.rawValue+"?subject=*information you want in the subject line* &body= *Whatever you want in the body*",cSubmitAs:"PDF",cCharset:"utf-8"});Please note anything in the * and the * do not include, they are instructions only.
martre
Registered: May 15 2008
Posts: 6
Hey

I put that script into my form but when i press the button nothing happens (my form has two pages)

event.target.submitForm({cURL:"mailto:"+DeliverToContactName1.rawValue+"?subject=test &body=pdf attached cSubmitAs:"PDF",cCharset:"utf-8"});DeliverToContactName1 is a textbox but I also tried using an email field and no reaction...

Ive tried the script in either formcalc and javascript and no reaction.

The script wont even work when i do the following:
event.target.submitForm({cURL:"mailto:myemail [at] somewhere [dot] com [dot] au?subject=test &body=pdf attached cSubmitAs:"PDF",cCharset:"utf-8"});thanks for ur help
Martin.T
LynPrice
Registered: Jan 3 2006
Posts: 9
your Code: event.target.submitForm({cURL:"mailto:"+DeliverToContactName1.rawValue+"?subject=test &body=pdf attached cSubmitAs:"PDF",cCharset:"utf-8"});Try: event.target.submitForm({cURL:"mailto:"+DeliverToContactName1.rawValue+"?subject=test &body=pdf attached",cSubmitAs:"PDF",cCharset:"utf-8"});
martre
Registered: May 15 2008
Posts: 6
thanks for the help
jenniferbunecke
Registered: Jul 29 2009
Posts: 35
How would you add a "CC" or a "BCC" email entered in another text field?