I have a text field where the entry needs to be AA99A, or A99A in arbitrary mask, but I want to have the letters in caps. If I use the arbitrary mask, I can't put in caps.
But if I use the custom keystroke script, I can change the letters in caps but then I don't know how to get that entry in the custom format script.
If you want the characters to be converted to upper case as you enter them, then you need to write a custom keystroke, custom format and custom validation scripts.
Or you can create an on blur action to convert the value of the field to caps for the 'On Blur" action.
I get that I need to add a script in the custom keystroke, as a matter of fact I put this code in the custom keystroke: event.change = event.change.toUpperCase();
However I don't know how to write the script to only allow 1 or 2 letters, followed by 2 numbers and then another letter.