How to capitalize the first letter of every word I type in a text field

By: Osain Alvarez | Asked: 01/25/2026
ForumsCategory: How-toHow to capitalize the first letter of every word I type in a text field
Osain Alvarez asked 3 weeks ago

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

2 Answers
Rob LeVineRob LeVine Staff answered 2 weeks ago

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.

Osain Alvarez
replied 2 weeks ago

Thank you for your response. I'm not a programmer; could you tell me what code I should use in Customize HTML tab.?

Rob LeVineRob LeVine
Staff replied 2 weeks ago

Google "jquery capitalize first letter of each word". Victor's solution is a good starting place, but it will only capitalize the first word.

Osain Alvarez
replied 2 weeks ago

Ok thanks

Victor Font Staff answered 2 weeks ago
Osain Alvarez
replied 2 weeks ago

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.

Victor Font
Staff replied 2 weeks ago

Here's a version that works with all words: https://gist.github.com/vfontjr/095de80f21922b7a3570ef41a765e313#file-uppercase_all_words-js

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right