- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2016 03:24 AM
Hi All.
I have a Question
Suppose through client scripr I want to display a the aasignment group name in pop up on changing the value in assignment group field.
how do i do that
when i am doing that as
::
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var asd=g_form.getLabelOf('comments');
// gs.addInfoMessage(asd);
alert(newValue);
g_form.addInfoMessage(asd);
It is showing SYS is but not value. please help
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2016 03:55 AM
Here's an easy way. Use g_form.getDispayBox().value. Assigned_to and Assignment_group are reference fields. They only hold a sys_id.
// This code has been tested on Helsinki
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
alert(g_form.getDisplayBox('assignment_group').value);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2016 03:49 AM
Use getReference method and get the value(display value/name).
Thanks,
Mrinmoy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2016 03:55 AM
Here's an easy way. Use g_form.getDispayBox().value. Assigned_to and Assignment_group are reference fields. They only hold a sys_id.
// This code has been tested on Helsinki
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
alert(g_form.getDisplayBox('assignment_group').value);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2016 04:29 AM
thanks Chuck,, that worked in one shot.. that too we can store that in variable .. Thanks you all for the help