How can I change the default search on a list collector to search on 'contains'?

nortonxnorris
Giga Expert

I have a list collector of software's. I would like the search pull the values based on 'contains' rather than 'starts with'.

Where do i make this change?

1 ACCEPTED SOLUTION

Jon23
Mega Sage

You should be able to use this: Auto-Complete for Reference Fields - ServiceNow Wiki


10 Contains Auto-Complete Search

By default, the reference auto-complete uses a starts with search. A user preference can be created to implement a contains search.


To use the contains search:


  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.

AutocompleteContains1.png


Note


Note: Setting the glide.ui.ref_ac.startswith system property to true overrides any existing "autocomplete.contains" settings in both user and system level preferences. This property changes the autocomplete query method for all users regardless of preferences.

View solution in original post

5 REPLIES 5

Thank you!  Great catch.  I was bit confused with "sys_user.autocomplete.contains" until I saw your comment. This has resolved my issue. Thanks a billion!