简体   繁体   English

使用 nintex 表单中的 javascript 验证电子邮件地址、电话、ID 号

[英]Validating Email Address,Phone,ID Number using javascript in nintex forms

I have a nintex forms that I am building in my sharepoint 2013 environment, now I am not familiar with JavaScript's and have not used javaScripts before!我在我的 sharepoint 2013 环境中构建了一个 nintex 表单,现在我不熟悉 JavaScript 并且以前没有使用过 javaScripts!

I want to validate email address, cellphone/telephone number and ID number while the customer is still filling in the form, I believe that can be done with javascripts code inside the nintex form我想在客户仍在填写表单时验证电子邮件地址、手机/电话号码和身份证号码,我相信可以使用 nintex 表单中的 javascripts 代码完成

I tried posting a question in the nintex community but haven't got any reply since yesterday我尝试在 nintex 社区发布问题,但从昨天开始就没有得到任何回复

Would appreciate any ideas and solution on how would I go about doing that!将不胜感激关于我将如何去做的任何想法和解决方案!

In the nintex form-designer you can use Regex.在 nintex 表单设计器中,您可以使用 Regex。 In the field-properties (double click textbox) you are able define the validation (range, Regex...).在字段属性(双击文本框)中,您可以定义验证(范围、正则表达式...)。

example: regex Email: ^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[AZ]{2,4}$例如:正则表达式电子邮件: ^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[AZ]{2,4}$

Nintex Email Validation Control Settings - Single Line Textbox --> Validation --> Use a regular expression : Yes Regular Expression : .+@.+(.).+ Regular expression error message : Enter a valid email address Nintex 电子邮件验证控制设置 - 单行文本框 --> 验证 --> 使用正则表达式:是正则表达式:.+@.+(.).+ 正则表达式错误消息:输入有效的电子邮件地址

Code .+@.+(.).+代码 .+@.+(.).+

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM