I need to capitalize the first letter of every word in a text field that contains more than one word. For example, in a field for a customer's name with more than one, or in a field for surnames with two surnames. I also need the capitalization to be saved.
The `frm_capitalize` option doesn't work for me; it only displays the capitalization but doesn't save it.
Thanks
frm_capitalize is just visual. To save the changes use jQuery and put it in the after fields section of the form's Customize HTML tab.
Thank you for your response. I'm not a programmer; could you tell me what code I should use in Customize HTML tab.?
Google "jquery capitalize first letter of each word". Victor's solution is a good starting place, but it will only capitalize the first word.
Ok thanks
Thanks Victor, but that option only works for the first word in the text field. If I type another word, the first letter comes out in lowercase. I'll have to keep looking. Thanks anyway for replying.
Here's a version that works with all words: https://gist.github.com/vfontjr/095de80f21922b7a3570ef41a765e313#file-uppercase_all_words-js
Please login or Register to submit your answer