CAPITILIZE text

Is there a way to CAPITALIZE text?

For instance, I type in a field: hello
start a method on-leaving the field which results in: HELLO

Who knows?

easy.
Create a method
Click the dataprovider to the right you want to UPPERCASE
click on js lib, string
doubleclick toUpperCase

I must have overlooked that future.
But in my case this function does not work.
I have a field: plaats

Placed a button with the method:

plaats.toUpperCase()

If I click the button, nothing happens!?

Did you do?

plaats = plaats.toUpperCase()

No! Sorry! :oops:
Thanks