The CreatorCon Call for Content is officially open! Get started here.

To display list based on another field

shraddhap
Tera Expert

Hello All,

I am trying to filter one reference field based on another field. It's like we have a "Category" field which is a drop down menu and other field is

a "Test Category" which is a Reference field.

find_real_file.png

Suppose If we select Category as "Business Application" then I want to display respective list for "Test category" field whose category is

"Business Application.

I tried a Script Include but it doesn't work for me.

find_real_file.png

If anyone has any good advice on what I need to do would be appreciated!

Thanks & Regards,

Shraddha

1 ACCEPTED SOLUTION

ideally, what you want can be directly accomplished by making the 2 fields dependent. you dont need reference qual for that.


If that is not working, then you take the path of reference qualifier.



Can you show how you have added the ref qual, and also add logs in the script include just to see if its even being called or not


-Anurag

View solution in original post

5 REPLIES 5

Anurag Tripathi
Mega Patron
Mega Patron

What you need is to make these fields dependent.


read more here


Creating New Fields - ServiceNow Wiki


-Anurag

Hello Anurag,



I have already marked the field as dependent.



find_real_file.png


ideally, what you want can be directly accomplished by making the 2 fields dependent. you dont need reference qual for that.


If that is not working, then you take the path of reference qualifier.



Can you show how you have added the ref qual, and also add logs in the script include just to see if its even being called or not


-Anurag

Thanks Anurag... It worked, the ref qual was not properly passed.. now it's fine, working properly.


Thanks for the help and suggestion.