We can achieve this with a simple javascript in the custom attributes of the field.
onKeyUp="this.value=this.value.toUpperCase();"
Or similarly for lower case:
onKeyUp="this.value=this.value.toLowerCase();"
See example here.EDIT 24-apr-2018:
Alternatively we could also use CSS to display textfields in upper or lower case with:
u-textUpper u-textLower
Be advised though, this only changes the display.
No comments:
Post a Comment