9 Replies Latest reply on Oct 4, 2013 9:54 AM by try67

    Capitalization Script

    M.Su Level 1

      Is there a capitalization script that can:capitalize only the first letter of each word and not make the rest of the letters lowercase, which is what this seems to do:

       

      event.value = event.value.toLowerCase().replace(/\b\w/g, function(match){return match.toUpperCase();});

       

       

      My issue is when a name such as "DeWolfe, John" is entered. It is automatically reformatted to "Dewolfe, John".