I want to restrict my field to 8 characters and upper case only. The length is working perfectly fine and the error message is working just as fine too. What rule can I use for upper case please?
Yo don’t need to count the expression with length as you could directly validate with the d2:validatePattern function for both counting and upper letters. This is a working example:
Good, but please note that your regular expression at the moment is not limiting at all in size. As long as you have something starting and ending with capital letters and longer that one should be validated. That is: