Skip to main content

Hi all,

Currently having issues to get a validation pattern to apply correctly.

 

Going by the documentation online you set it using:

 

">Value]e%]" for percentage example. I tried using the same practice for a banking sort code format which was:

 

"pValue]u-]aValue]u-]aValue]"

 

So it would look like this:

 

12-12-12

 

Unfortunately it will generate the error message when it is typed in correctly on the form. Is anyone able to identify what I am doing wrong? (see attached for how it appears in smartforms)

 

 

 


14963i259926D0DBF0984E.jpg

I assume you are referring to validation pattern?


http://help.k2.com/onlinehelp/k2smartforms/userguide/current/default.htm#using_a_validation_pattern_and_rule_condition.html


 


If so perhaps the Regex pattern:


^^0-9]{2}}-]]0-9]{2}}-]]0-9]{2}$


 


Testing Tool:


https://regex101.com/r/j6jNsH/2


Reply