reference field search with Id instead of name

Gopal14
Tera Contributor

Hi Team,

 

I have a reference field in cmdb_ci table. Currently It is searching with name.

Now I want to search with id instead of name.

 

In Attributes field I have written bellow

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=id,ref_ac_columns_search=true

 

Now when I am searching in field now it is displaying both name and id.

 

I want only ID in reference field.

 

What modification I need to do in reference field

3 REPLIES 3

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @Gopal14 ,

Is that 'id' OOB field? Because I'm not able to find that in my instance for cmdb_ci table.


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

Hi Gunjan,

 

I have given example, But my  field is u_site_code

Hi @Gopal14 ,

The one way to do that is goto configure dictionary of that field and make visible true as below

GunjanKiratkar_0-1669117772413.png

Note : This is global change.


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy