Auto CAPS all words

Comments

1 comment

  • Avatar
    Charles Bibuya

    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.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk