简体   繁体   中英

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!

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

I tried posting a question in the nintex community but haven't got any reply since yesterday

Would appreciate any ideas and solution on how would I go about doing that!

In the nintex form-designer you can use 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}$

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

Code .+@.+(.).+

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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