I am using Adobe Lifecycle Designer ES2 to create an Adobe Acrobat X pdf form. The form uses a checkbox to select different options, and then the form is sent via e-mail to a specific e-mail address. I am wondering if it is possible to script the following option when sending the e-mail:
I have a dropdown list box where a person's name is selected e.g. John Smith. Depending upon which person is selected, is it possible to include their name in the cc field of the e-mail message, so that John Smith is appended to @abc.com for an e-mail address of firstname.lastname@example.org
Any help would be greatly appreciated.
You can do the following:
if(DropdownListe1.rawValue != null)
//fill in e-mail
var Mailto = DropdownListe1.rawValue;
//var Mailto = "email@example.com";
//fill in subject
//var YourSubject = Formular1.s1.subject.rawValue;
var YourSubject = "Test Subject";
//fill in message
//var YourMessage = "Content PDF:\r" + "Field content: " + Formular1.s1.inhalt.rawValue + "\rName: "
var YourMessage = "This is a test message.\r2.row start here.\r3.row here.";
//fill in e-mail cc
//var CC = Formular1.s1.emailcc.rawValue;
var CC = "firstname.lastname@example.org";
//fill in e-mail bcc
//var BCC = Formular1.s1.emailbcc.rawValue;
var BCC = "email@example.com";
var Mail = "mailto:" + Mailto + "?Subject=" + YourSubject + "&Body=" + YourMessage + "&cc=" + CC + "&bcc=" + BCC;
//cSubmitAs: "PDF" send the pdf as attachment
//cSubmitAs: "XML" send the pdf as xml-attachment
Hope it will helps you,
Thank you very much for your reply. I created a new normal button and copied the code in form in Adobe LiveCycle ES2. I extended the Adobe Reader Features in Adobe Acorbat X, and then opened the pdf form in Adobe Acrobat X reader. I am able to process the form, and exactly as you said, if I don't select a person from the drop down list, the E-mail submit button doesn't work. Upon filling out the entire form (including select a person from the drop down dialog box), the e-mail submit button displays a dialog box called Send Form. I have inherited the original form another programmer. I suspect there is coding hidden in the form, but I am sure where. I am attaching a screen shot for your reference. Appreciate you help.
When we distribute a form via Acrobat and it picks the sender information from its preference setting.
Go to Edit -> Preferences -> identity (category) -> check the identity information.
I'm also using this script. When I submit as XML it works perfectly, but when I try and submit as pdf by just changing
it does not work. Any ideas?