I have 6 fields that are required, below is the email function that i have scripted into a button to submit. What type of script would I use to make the below code dependant upon all 6 required fields having some data in them? Please advise:
Also, is there anyway to have this code submit the form as a PDF instead of an FDF?
{
// This is the form return e-mail. Its hardcoded
// so that the form is always returned to the same address
var cToAddr = "nightvision [dot] procurement [at] itt [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("CURRENTDATE").value + ")";
var cBody = "Thank you for submitting your form.\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});
}
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com