Question
6
Replies
3419
Views
Infosys Ltd
Posted: June 14, 2018
Last activity: June 18, 2018
Do we have any ootb to Capitalize first letter of every Word in the value field of a property (proper case)
Hi,
We have requirement to mark first letter to Upper case of every word in data of property through out the application. In simple data has to reflect in proper case through out the application for a specific property on UI.
Example: If we have field 'First Name' with property .Firstname. Whenever user enters data to respective field, it should be converted to proper case.
DO we have ootb activity/function.
Hi,
You can do OnChange - Run script(changetoUpperCase) & pass the current value.
function changetoUpperCase(val) {
var a = val;
a = a.replace(/(^|\s)[a-z]/g,function(f){return f.toUpperCase();}));
document.getElementById("propert").value = a;
}
Please let me know in case you face any issues implementing this.
Regards,
Rachit