How to convert/generate string to Camel Casing ?

Document created by anton_serbanescu Employee on Apr 7, 2014Last modified by ellen_obrien816040 on Apr 4, 2016
Version 2Show Document
  • View in full screen mode
Have a requirement to convert lower case name(s) to Camel Casing, or first letter to Upper Case, and the rest to remain lower case. How can that be accomplished ? It appears that using map functions, does not retain the name.
Use a custom script that will use javascript and have the following code in it:


var capitalized = firstName.replace(/^[a-z]/, function(m){ return m.toUpperCase() });


1 person found this helpful