Populating Reference Field Dropdown Dynamically Using GlideAjax on onChange Event

Deepika Mishra
Mega Guru

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 ?

1 ACCEPTED SOLUTION

Deepika Mishra
Mega Guru

I added dependent field as assignment_group and it started working. No code was required.

View solution in original post

7 REPLIES 7

Deepika Mishra
Mega Guru

this is adding value but showing as empty in the dropdown:

The one marked in yellow are previous option values and new are coming as blank

DeepikaMishra_0-1730799715295.png

 

Deepika Mishra
Mega Guru

This add blank values:

DeepikaMishra_0-1730802079288.png

 

 

Deepika Mishra
Mega Guru

I added dependent field as assignment_group and it started working. No code was required.