The following script does not work when i open the documetn in Adobe Reader. What can I do to solve this issue?
//Validate before continuing
if (this.getField("DELIVER_TO").value !=null && this.getField("DELIVER_TO").value!="" && this.getField("VETTED").value !=null && this.getField("VETTED").value!="" &&
this.getField("VETTED CATEGORY").value !=null && this.getField("VETTED CATEGORY").value!="" &&
this.getField("DESCRIPTION1").value !=null && this.getField("DESCRIPTION1").value!="" && this.getField("PRICE1").value !=null && this.getField("PRICE1").value!="" &&
this.getField("DATE REQUIRED1").value !=null &&
this.getField("DATE REQUIRED1").value!="" && this.getField("ACCOUNT NUMBER1").value !=null && this.getField("ACCOUNT NUMBER1").value!="")
// change the names of the fields to match your fields...
{
// This is the form return e-mail. Its hardcoded
// so that the form is always returned to the same address
var cToAddr = "sendtoemailaddress [at] email [dot] com";
// First, get the client CC e-mail address
var cCCAddr = this.getField("DELIVER_TO").value;
var cSubLine = "NEW PR SUBMITTED ( "
+ this.getField("TOTAL").value + " "
+this.getField("PRODUCT OR SERVICE").value + " "
+ this.getField("REQUEST RECEIVED").value + ")";
var cBody = "Thank you for submitting your form. ATTACH ALL SUPPORTING DOCUMENTATION TO THIS EMAIL BEFORE SENDING!\n" +
"Save the mail attachment for your own records";
// Send the form data as an FDF attachment on an e-mail
this.mailForm({bUI: true, cTo: cToAddr, cCc: cCCAddr,
cSubject: cSubLine, cMsg: cBody});
}
else {
app.alert("You cannot submit this form to Purchasing until all required fields are completed... Required Fields are highlighted in RED.... IF YOU HAVE ALREADY SIGNED THIS DOCUMENT YOU MUST CLEAR THE FORM AND RESTART!");
}
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com