JavaScript PDF电子邮件未提示

时间:2019-01-22 07:21:41

标签: javascript pdf

我对此编码有疑问

var x =this.getField("Signature2").value
if(x == ""){app.alert("please ensure all the required fields is filled-in before sending", 3);
}
else{

this.submitForm = "email@gmail.com"; 

var cSubLine = "Request Form - " + this.getField("Account").value + this.getField("Account number").value +", " + this.getField("COMPANY NAME").value;
var cBody = "Details for Request-" + this.getField("Account").value + this.getField("Account number").value +"," + this.getField("COMPANY NAME").value + ", " + this.getField("COMPANY NAME").value +" , "+ this.getField("COMPANY NAME").value;  

  this.mailDoc({  
  bUI: true,  
  cTo: cToAddr,  
  cSubject: cSubLine,  
  cMsg: cBody  
});    
}   
  1. 因此,当未填写名为签名的字段时,会弹出一个警告框,通知用户填写空白字段。

  2. 但是,即使用户填写了所有字段,提示电子邮件的框也不会出现。

  3. 我做错了吗?

0 个答案:

没有答案