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

Filter the search result in reference field

thisisauniqueus
Giga Expert

Hi

Is it possible to filter the search result in a reference field, say for example if a project field is referenced in a table like

find_real_file.png

can i filter the results when i click on the search icon as shown in the screen shot above?

Regards

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi John,



Yes, you can do that quite easily! Reference fields can use what's called   "Reference qualifier" to filter records on the table they reference. By default, you get all the records. If you want to filter them, you can do that quite easily using a reference qualifier. They range from simple (no scripting required) to more advanced (scripted.)



Go to the dictionary entry for that field and note the "Reference specification" section.



Here's an example of a reference qualifier on a table to simply take the Active records of the User table.



find_real_file.png



Reference: Reference Qualifiers - ServiceNow Wiki


View solution in original post

14 REPLIES 14

Chuck Tomasi
Tera Patron

Hi John,



Yes, you can do that quite easily! Reference fields can use what's called   "Reference qualifier" to filter records on the table they reference. By default, you get all the records. If you want to filter them, you can do that quite easily using a reference qualifier. They range from simple (no scripting required) to more advanced (scripted.)



Go to the dictionary entry for that field and note the "Reference specification" section.



Here's an example of a reference qualifier on a table to simply take the Active records of the User table.



find_real_file.png



Reference: Reference Qualifiers - ServiceNow Wiki


Thanks alot for your time, got this working can you guide how to show/hide columns in it...



Regards


Hi John,



Please follow below link for more info on how to customize reference popup view.


Customizing the Reference Icon - ServiceNow Wiki



Please let us know if you have any questions.


Thanks Pradeep,


i need to show hide the column when popup appears by clicking on the look up icon of reference field, how can i do that




Regards