Adding additonal javascript acction to existing javascript on PC with ADOBE Acrobat PRO XI
PC, Windows 10, Adobe Acrobat PRO XI
var patternEmpty = /^\s*$/;
var strMissing = "";
if(patternEmpty.test(this.getField("1st
purchaser").value))
strMissing =
"1st purchaser";
{ // All is ok,
submit the data
- console.println("All form data ok");
}
if(strMissing.length)
{// Got an error
- app.alert("Please complete 1st Purchaser: " +
strMissing);
}
this is the script currently in use and is functioning as desired. I want to add an action that when the approver hits the submit button it will cc: the email address entered in the EMAIL field completed by the originator of the form?
