Admin1676454018 Posted August 22, 2008 Share Posted August 22, 2008 // This rule forces the first character of a field (typically a field that contains a name) to be upper-case. var currentField = Field("FullName"); splitFieldVar = currentField.split(" "); newVar = "" for (i = 0; i < splitFieldVar.length; i++) { newVar += splitFieldVar.substring(0, 1).toUpperCase() + splitFieldVar.substring(1, splitFieldVar.length).toLowerCase() + " "; } return newVar; Link to comment Share on other sites More sharing options...
jshobar Posted October 1, 2008 Share Posted October 1, 2008 It may also be easier to use the function: return ToTitleCase(string); Link to comment Share on other sites More sharing options...
GGreg Posted January 7, 2009 Share Posted January 7, 2009 Hello, I need a rule to forces : - a name field to be in lowercase - and the first caracter in uppercase How to make it ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.