I have the following button script in one of my forms. When the button is executed it attaches the filled pdf file in a email.
Is there a way I can add an additional line of script code in my existing script that will name the file how I want it. (Example)--> John Dowe 05272010, The John Dowe would be picked off from the form and the date would be picked of from the PC's system. Im working with Adobe Acrobat Pro 9.
{
// This is the form return email, It’s hardcoded
// so that the form is always returned to the same address
// Change address on your form
var cToAddr = "us [dot] pb [dot] client [dot] complaints [at] global [dot] com";
// Set the subject line
var cSubLine = "Data from Copy of Verbal Complaint Form - Interactive";
// Send the form data as an PDF attachment on an email
this.mailDoc({bUI: true, cTo: cToAddr, cSubject: cSubLine});
}
Search the forums, this has been discussed before here.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com