Answered
I have a PDF form created in Acroforms 8 which has a button with the following code
this.mailDoc ({
cTo:
"New Site Construction - IT,",
cSubject: "New Site Setup",});
The button works fine but I would like to add the site name to the subject line based on what is entered in the "Site" text field.
var cSite = this.getField("Site").value;
Then Apply it to the mail function like this:
this.mailDoc({...., cSubject: cSite });
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script