Validation to prevent non-alphanumerical characters

  • 25 October 2016
  • 3 replies
  • 0 views

Badge +1

I am curious to know if there is a way to use a rule to check for the use of non-alphanumerical characters. All I want is [a-z A-Z 0-9] to be used and no special characters. I considered using "If an advance condition is true" condition as it allows me to check for contains but I'm not sure how to code it. 

Or if there is a better way to handle this.

 

Thanks in advance.

 


3 replies

Userlevel 5
Badge +18

You can validate this on the Form/View level using Validation Patterns:


 


http://help.k2.com/onlinehelp/k2smartforms/userguide/4.7/default.htm#Creating_a_Custom_Pattern.html

Badge +3

Create a  custom validation pattern

Select the textbox ,

Go to the Properties of Control,

Click the ellipsis of Pattern in Validation

14576i35AB19B95F50607D.jpg

 

Select the Pattern for the control

 

Hope this helps

Nidhin

 

 

 

Badge +1

Thank you both for the replies! I appreciate it. 

Reply