This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

jfo
jfo

Let's say I have a name field and no matter if caps lock key is activated or not the name should be displayed and saved as 'PERSON'S NAME' instead of 'person's name'.

Is there a built-in/recommended approach to automatically set the input of text fields in uppercase?

Last updated

daftspunky
daftspunky

Using a form field partial type would be the best for this.

I have added an example to the Test plugin that handles this using JavaScript:

https://github.com/daftspunk/oc-test-plugin/commit/75e7e7a73e1dc5bf419228dcda2391f6d6d375fd

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.