I’m trying to get the text transformed to get only the first letter capitalized.
For example :
test == Test
TEST == Test
I though it’d work using “to.UpperCase” function, but it didn’t. It work only in the case of “test”, but if I enter “TEST” as an input, then it doesn’t work.
.toUpperCase() is a javascript function that converts text to upper case (String.prototype.toUpperCase() - JavaScript | MDN) if you are using TEST and converting the first character to uppercase I would expect the output to still be TEST as it is uppercase already.
Instead of doing that what you could do is use an Edit Fields node like the example workflow below and use .toTitleCase() or if you wanted to use the code node method try converting the entire string to lowercase first then changing the first value.
Hey Jon,
Thank you very much for your quick answer.
I’ve tried .toTitleCase in my previous workflow but got the error that this function doesn’t exist.
However, with your example, IT WORKS !