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

How to change search type of reference field on catalog from "Starts With" to "Contains"

vaibhavdesai
Kilo Expert

Hello All,

Is there a way to change search behavior of catalog variable(lookup/reference)?
Default search always uses "Stars With" query, I want to change it to "Contains". And is it possible to display records based on search from more than 1 column.

Thanks in advance!

Regards,

Vaibhav

1 ACCEPTED SOLUTION

  1. Disable the glide.ui.ref_ac.startswith system property . See Improving Auto-Complete Queries.
  2. Navigate to User Administration > User Preferences.
  3. Select the preference "'<referenced table>.autocomplete.contains"'.
  4. Set the value field to true.
  5. Log out and log back in to immediately display the updated search.

View solution in original post

7 REPLIES 7

karthiknagaramu
Kilo Sage

Hi,



Which can be achieved using a system property. Please check the below link.



Auto-Complete for Reference Fields - ServiceNow Wiki



Regards,


KN


Hello Karthik Nagaramu,



Can you please point me to exact content point in the wiki link you have shared. I am only able to see about "Auto complete" feature.



Regards,
Vaibhav Desai


  1. Disable the glide.ui.ref_ac.startswith system property . See Improving Auto-Complete Queries.
  2. Navigate to User Administration > User Preferences.
  3. Select the preference "'<referenced table>.autocomplete.contains"'.
  4. Set the value field to true.
  5. Log out and log back in to immediately display the updated search.

Changing this value will effect on global level right? I want to change this only for one variable. Is there anyway of doing it.