我对此编码有疑问
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
});
}
因此,当未填写名为签名的字段时,会弹出一个警告框,通知用户填写空白字段。
但是,即使用户填写了所有字段,提示电子邮件的框也不会出现。
我做错了吗?