Convert to sentence case and title case - Mendix Forum

Convert to sentence case and title case

42

Hello,

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

asked
2 answers

If you are generating a passPhrase for security, the CSS class doesn't help, as this needs to be set in the DB, but otherwise the CSS workaround is nice!

Created

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

Created