I have a requirement where a field needs to be validated to:
“Always begins “C” with 3 letters and 3 numbers”
Obviously, I can check the first digit is “C”, but I don’t know how to check for 3 letters and 3 numbers?
Cheers,
Katherine
I have a requirement where a field needs to be validated to:
“Always begins “C” with 3 letters and 3 numbers”
Obviously, I can check the first digit is “C”, but I don’t know how to check for 3 letters and 3 numbers?
Cheers,
Katherine
Subject: validation for integers and strings…
This code will do it: ‘felt’ is the name of the field… could be switched with @thisname
a:=@left(felt;1);
b:=@middle(felt;1;3);
c:=@middle(felt;4;3);
aa:=@matches(a;“C”);
bb:=@matches(@lowercase(b);“+{a-z}&???”);
cc:=@matches(c;“+{0-9}&???”);
@if(aa&bb&cc;@success;@failure(“NOT OK”));
Subject: validation for integers and strings…
if fieldvalue like “[C]***###” then…as I understand it should fork