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

Script needed

patra
Registered: Oct 19 2006
Posts: 270
Answered

To email a form I use the script below:

var myDoc = event.target;
var address = "xxx [at] xxx [dot] org";
var sub = "Photocopying Requisition Form_";
var msgBody = "See my Photocopying Requisition Form attached.\n\nThank You!";
var Sender = form1.SubALL.Sub_1.Req_Name.rawValue;

myDoc.mailDoc({ bUI: false,
cTo: address,
cSubject: sub,
cMsg: msgBody + "\n\nRegards\n" + Sender,
cSubmitAs: "PDF"});

It's work fine! Just I will like to make a addition.
Is it possible on the subject line to have also(Plus) the select Item(No the Value) of a Drop Down List?
The script above gives me only: Photocopying Requisition Form_

Thanks for your help

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Just add some little code snippet to the current code....

var myDoc = event.target;var address = "<span class="spamspan"><span class="u">xxx</span> [at] <span class="d">xxx [dot] org</span></span>";var sub = "Photocopying Requisition Form_" + dropdown.rawValue;var msgBody = "See my Photocopying Requisition Form attached.\n\nThank You!";var Sender = form1.SubALL.Sub_1.Req_Name.rawValue; myDoc.mailDoc({ bUI: false,cTo: address,cSubject: sub,cMsg: msgBody + "\n\nRegards\n" + Sender,cSubmitAs: "PDF"});

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs