首页 > 解决方案 > 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. 我做错什么了吗?

标签: javascriptpdf

解决方案


推荐阅读