手机App
cancel submit deluge 语句用于表单动作 - < 添加时/编辑时 > - 验证块,用于阻止表单被提交。“添加时”或“编辑时”块中的验证脚本的默认动作是提交数据,因此如果您想阻止表单被提交,则必须执行 cancel submit。使用“表单动作 - 删除时”块中的验证脚本时,您必须执行 cancel delete 以阻止表单删除数据。
// 指定验证代码 { // specify alert message if not valid and cancel the submission alert "<alert message>"; cancel submit; }
注: 仅当存在‘cancel submit’时才会调用‘提交时’中的提醒消息。如果没有取消表单,则提醒消息会被 Zoho Creator 忽略。
if (input.Age < 20) && (input.Age >100) { alert "年龄应该在 20到100之间"; cancel submit; }
opening = New_Opening [Position_Name == input.Applied_For]; if (opening.Status == “Closed”) { alert “The job profile ” + this.Applied_For + ” for which you have applied is not currently open “; cancel submit; }
写信给我们:support@zohocorp.com.cn