I have a button on a form that executes the script below.
I am trying to email the document after the user has marked a checkbox. I think I understand that the reason the email user interface appears is that the bUI paramete is not honored in a non-priveleged setting.
So I tried the code below, but the user interface still appears. Is there some way to just click the OK button and have the document emailed without any more user intervention?
Thanks for any help...
trustedMailDoc = app.trustedFunction( this.mailDoc({
bUI: false,
cTo: "mgoedde [at] one [dot] net",
cSubject: "Sample Proof",
cMsg: "Here is the approved proof"
})
);
app.beginPriv();
trustedMailDoc();
app.endPriv();
if (this.getField("Check OK").isBoxChecked(0)) {
this.closeDoc();
}
else {
app.alert("The OK box is not checked. Please check the OK box before submitting proof.")
}
A certified expert on Adobe Acrobat, Carl Young is an Adobe Acrobat and LiveCycle Designer trainer and consultant based in Phoenix. He is the producer of the [link=http://www.pdfconference.com/]PDF Conference[/link].