- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2018 07:13 PM
Hello,
I have a requirment where i need to convert all the entered text into Upper Case for that i wrote below script which is working fine in Native view but not in Service Portal view:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var str = newValue.toUpperCase();
if (str != newValue)
g_form.setValue("emp_id", str);
}
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2018 07:30 PM
Hello Shaik,
**Mark the answer as correct and helpful, if it helped you...!!!
I just tried this in my PDI and checked in SP, it worked fine
Make sure in the Onchange client script --> you are making the UI type - "ALL"
used above code and find the below screenshots
After changing the group in SP view

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2018 07:30 PM
Hello Shaik,
**Mark the answer as correct and helpful, if it helped you...!!!
I just tried this in my PDI and checked in SP, it worked fine
Make sure in the Onchange client script --> you are making the UI type - "ALL"
used above code and find the below screenshots
After changing the group in SP view

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2018 07:45 PM
try and make sure UI Type is set to All as Chalan mentioned in his post.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var str = newValue.toString().toUpperCase();
if (str != newValue)
g_form.setValue("emp_id", str);
}