Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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