Auto CAPS all words
Trying to get iformbuilder to put every work in CAPS. Either customer name or street address.
I got this to work, but it only does the first word. Any one else come across a fix?
{customer_name.charAt(0).toUpperCase() + customer_name.slice(1);}
-
Hi As you said: "I got this to work, but it only does the first word" It's clear because your parameter index is 0 in the method [charAt(0)].
Please Try this:
X = customer_name.length();// This will return the number of characters to use as an Index for charAt () method.
{customer_name.charAt(X).toUpperCase() + customer_name.slice(1);}
// The index of the Character is X corresponding to the total number of character in your customer_name field.
Please sign in to leave a comment.
Comments
1 comment