Hi Matt,
I assumed you are referring to the Full Name for a Contact. If so, try something like this (*tested):
String.prototype.capitalize = function() {
return this.charAt(0).toUpperCase() + this.slice(1);
};
function capitalName() {
var firstName = Xrm.Page.getAttribute("firstname").getValue();
var lastName = Xrm.Page.getAttribute("lastname").getValue();
Xrm.Page.getAttribute("firstname").setValue( firstName.capitalize() );
Xrm.Page.getAttribute("lastname").setValue( lastName.capitalize() );
}
Eric UNG [Senior Analyst Programmer :: Sydney, Australia]