Convert to sentence case and title case - Mendix Forum

Convert to sentence case and title case



The current string functions that are available are either toLowerCase or toUpperCase. However, for various user input fields, we would love to have the ability to transform the text to sentence case or title case. Hence, either make only the first letter of each sentence an upper case, or every word in the string.

Also see:

Convert Case - Convert upper case to lower case, lower case to upper case and more!

java - How to capitalize the first character of each word in a string - Stack Overflow

1 answers

You can use the Atlas UI utility CSS class “text-capitalize” for that.