Due to a Custumer requirement, I needed to fill some Text Fileds Uppercase, no matter if Cap Lock is ON or OFF.
I found this solution, in tree steps.
1.- Add a CSS Stile line.
a.go to PHP Settings->HTML->STYLES
b. Click on "Edit Styles"
c. At the end , below the line /BEGIN_USER_STYLES/ add the following line:
.convertuppercase {text-transform:uppercase}
2.-On Clients Scripts Section choose Global ->Global Code and Add the following function:
function func_convert_uppercase(x) {
x.value = x.value.toUpperCase();
}
- Choose the field you want to be Uppercase in your table
a. In custom attributes write 'class="convertuppercase" onchange="func_convert_uppercase(this)" autocomplete="off" '
NOTE: autocomplete="off" is just to avoid browser´s autocomplete option, because when you are typing a new value, previous typed values for this field are shown in a list.
If you select one of them, the value is saved as is shown , wheter if it is Upper case or Lower Case. (I don´t know Why)
I hope it is usefull for you