in reply to field_filters not working
constraints => { smcsystems => qr/^\d+$/,}
But above is accepting any data - numeric and non-numeric. However if i change code to ->
constraints => { smcsystems => qr/^\d{3}$/,}
It does validate data but then I have to enter 3 digits(that is the max length allowed in my form field). Now I am not sure how I can write reg-ex so that it accepts any number of digits but no alpha chars.
|
|---|