- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2014 05:53 AM
Hello guys,
Today I've received a request to only allow CAPS and not allow alpha as first character on two fields on CMDB CI form.
I've searched for this in the wiki and I did not find an answer, someone knows if this is possible?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2014 06:01 AM
You could use a client script on change of the field.
var str = g_form.getValue('field name');
var str = str.toUpperCase();
g_form.setValue('field name',str);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2014 05:59 AM
Hi,
You need to create onChange or onSubmit Client Script which check by Regular expressions in JavaScript.
it's may be help full for you.
string - javascript validation - only allow one capital letter - Stack Overflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2014 06:01 AM
You could use a client script on change of the field.
var str = g_form.getValue('field name');
var str = str.toUpperCase();
g_form.setValue('field name',str);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2019 02:25 AM
Thanks Paul for this - it was real helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2014 06:28 AM
Thanks guys, it worked!