- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 07:01 AM
Hi All,
Is there any way to make filed by default upper case in catalog item. If user will type, all letters should be in upper case.
I am aware about the toUpperCase function but it will convert value when you go on next field but I want this on same time when user type. Please suggest.
Thanks in advance!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 07:19 AM
Hi,
There is no way to achieve this that I know of.
Either you allow to write in lower case, and make use of toUpperCase method when saving etc.
Or there is a possibility to write a onChange client script that uses regex that only allows for uppercase characters, then it can display an error (and clear the text) when writing characters in lower case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 07:10 AM
Hi
ServiceNow has onChange() that will have to be used & is only option.
If you are looking at getting text converted as soon as user enters & moves on to next character in the text field it is not possible.
There is solution mentioned here using OnLoad() as well :
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2022 11:30 PM
Hi
Any update to this ?Any follow-up required? if not
Kindly mark the answer as Correct & Helpful both such that others can get help.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 07:19 AM
Hi,
There is no way to achieve this that I know of.
Either you allow to write in lower case, and make use of toUpperCase method when saving etc.
Or there is a possibility to write a onChange client script that uses regex that only allows for uppercase characters, then it can display an error (and clear the text) when writing characters in lower case.