Difference between revisions of "Changing Text to Uppercase or Lowercase"

From SmartWiki
Jump to: navigation, search
 
Line 7: Line 7:
  
  
[[Category:Custom Fields]][[Category:System Management]][[Category:JavaScript Examples]]
+
[[Category:Custom Fields]][[Category:JavaScript Examples]]

Revision as of 16:34, 22 April 2009

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.

onChange="javascript:this.value=this.value.toUpperCase();"


This code will change the case as soon as the user enters a value and clicks anywhere outside the field (even without having to hit SAVE).