Hello - I'm created custom fields for things like zip codes and phone numbers with front end masking - but I'd like to aslo pre-define a regex for these fields by default.
I'm able to overwrite the SetDefaultValues, and set the Regex Checbox to be checked by using
typeof(RegularExpressionValidator).FullName
This is easy enough. I'm pretty sure I need to use RegularExpressionAttribute to set the default regex, but I can't seem to figure out how to set this equal to a regex value by default.
Hello - I'm created custom fields for things like zip codes and phone numbers with front end masking - but I'd like to aslo pre-define a regex for these fields by default.
I'm able to overwrite the SetDefaultValues, and set the Regex Checbox to be checked by using
This is easy enough. I'm pretty sure I need to use RegularExpressionAttribute to set the default regex, but I can't seem to figure out how to set this equal to a regex value by default.
This is where I'm at thus far
And of course, this isn't working.
I'd also like to know how to set the default message as well.
Thanks