javascript - 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
});
}
所以当名为签名的字段未填写时,会弹出警告框,通知用户填写空白字段。
但是,即使用户填写了所有字段,也不会出现提示电子邮件的框。
我做错什么了吗?
解决方案
推荐阅读
- database - 自动将日志从 keycloak 数据库传输到 syslog
- javascript - 同一部手机多次访问后,HTML 视频无法在手机上播放
- java - 您的 SQL 语法有错误,但查询在 MySQL 工作台中运行
- python - 如何在 Linux 中使用 Python 运行 C# 代码
- c# - 如何更改内存提供程序中的配置?
- android - 无法阻止 Android 房间数据库中的触发器递归
- c++ - glad.c 找不到glad/glad.h,但是main.cpp 可以
- asp.net - 从 Razor revisa_login.cshml 访问 Session 对象
- itext - 在 iText 7 java 中,如何在已将链接文本添加到文档后更新链接文本
- gremlin - 查询以识别标签“A”的顶点与标签“B”的多个顶点有边