Server action insert query Titlecase value not working

Hi,
I have an insert query into a table and the I want to be able to titlecase the firstname and last name as some people enter names all caps, like JOHN. But when I try to do this on the server side but it doesn’t change it to titlecase.

What’s not working exactly?
In the following article it’s explained how the titlecase formatter works:

What you want to do is probably convert everything to lowercase and then apply titlecase.

It doesn’t change JOHNS to Johns. It simply leaves it as it is entered.

SOLUTION: However, using your suggestion @Teodor to convert everything to lowercase and then apply titlecase worked!!!

Thank you Teodor!

1 Like