
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 09:17 PM
Hi All,
I have a reference field: Case Type which is showing dropdown values using a reference qualifier.
Reference Qualifier:
javascript: new global.ScriptIncludeName().functioncall(current.assignment_group.getDisplayValue());
Note: this is not a client callable script include.
This is working absolutely fine when form is loading.
I have a on change client script where the field: Case Type should populate on changing the assignment group.
As the previous one was not client callable, I made one Client callable script include and returning the choices and adding them as an option. However it doesn't seems to be working.
How can I make this work ?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2024 06:28 AM
I added dependent field as assignment_group and it started working. No code was required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 09:33 PM
How are you populating it?
ideally the reference qualifier should automatically work based on the config you have shown.
How are you returning the list for Case type on change of assignment group?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 11:55 PM - edited 11-05-2024 06:29 AM
Reference Qualifier:
javascript: new global.ScriptIncludeName().functioncall(current.assignment_group.getDisplayValue());
Problem:
Now, I need to dynamically populate the Case Type dropdown based on the Assignment Group when the field is changed. To achieve this, I created a Client Callable Script Include, but it is not working as expected.
The steps I followed:
- Created a Client Callable Script Include that returns the choices for Case Type based on the selected Assignment Group.
- Made an onChange Client Script that calls the Script Include via GlideAjax when the Assignment Group field is changed.
Observations:
- The onChange client script is correctly calling the Script Include via GlideAjax, and the sys_id and value (display value) are being returned in the response.
- The Case Type dropdown is not populating when the Assignment Group is changed.
What I'm Looking For:
- Insights on why the dropdown is not populating after calling the Script Include via GlideAjax.
- Suggestions on how to dynamically populate the reference field after the Assignment Group is changed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2024 12:07 AM
As @Deepak Negi rightly said , you need to return sys_ids as field is a reference field.
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 11:59 PM
as the case type is a reference field you need to populate the sysid.
g_form.addOption only work for choice fields.
try below
g_form.setValue("<fieldname>",caseType.sys_id);