Changes

Changing Text to Uppercase or Lowercase

22 bytes removed, 15:34, 29 April 2022
no edit summary
You can change the case of the text entered in a custom field by writing this code in HTML Tag box in the custom field settings.
'''To convert entered text to Uppercase onChange="javascript:this.value=this.value.toUpperCase();"
'''To convert entered text to lowercase onChange="javascript:this.value=this.value.toLowerCasetoUpperCase();"
'''To convert entered text to lowercase
 
onChange="this.value=this.value.toLowerCase();"
The code gets executed as soon as the user enters a value and clicks anywhere outside the field (even without having to hit SAVE).
You can also use onBlur instead of onChange
 
onblur="this.value=this.value.toUpperCase()"
Smartstaff, administrator
38
edits