How do I change the type ahead search from "starts with" to contains?

Nic Omaha
Tera Guru

I have a variable that will automatically do a query for starts with when entering in text. I can enter *"text" and it will do a contains search. How do I make this the default search?

search.png

7 REPLIES 7

Fernando90
Giga Contributor

Hi Nicholas,



If I understand correctly you wish to use a contains (*) search by default on the reference field shown on your screenshot.



You could try following the following steps from the WIKI: http://wiki.servicenow.com/index.php?title=Auto-Complete_for_Reference_Fields#Contains_Auto-Complete...



  1. Disable the glide.ui.ref_ac.startswith system property.
  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.


At step 3 you can create the preference if it does not yet exist, and only apply it for your user if desired.



Is this what you were looking for?


Have already done that and it works every where else but here its a bit strange.


Thanks @Fernando90, the "Log out and log back" saved me some time!