Need to hide first name and Last name. Instead of that Contact should need to be visible.

praveen1231
Tera Contributor

Hello everyone,

My requirements are, need to hide the First name, Last name and also need to display the Contact field in the Reference (sys_user). Requirement 2 is, when I search the particular user eg: Abraham Lincoln, if I search with coln (Abraham Lincoln) should need to display. Please go through with bellow attached screen short. Please let me know If you had any idea. Thank you.

praveen1231_0-1698398252598.pngpraveen1231_1-1698398319161.png

 

1 ACCEPTED SOLUTION

@praveen1231 

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

Before you begin

Role required: admin
Procedure

  1. Disable the glide.ui.ref_ac.startswith system property.
    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 auto-complete query method for all users regardless of preferences.
  2. Navigate to User Administration > User Preferences.
  3. Select the preference "'<referenced table>.autocomplete.contains"'.
  4. Set the value field to true.
  5. Autocomplete user preference set to true
  6. Click Update.
    What to do next

Log out and log back in to display the updated search.

 

doc link: https://docs.servicenow.com/en-US/bundle/vancouver-platform-administration/page/administer/field-adm...

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.



Best regards

Suyog

View solution in original post

8 REPLIES 8

@Suyog Aptikar Thank you for replying to my question. But we do not need to do like that. Please share any other idea. Thank you.

@praveen1231 interesting, why you are not willing to use OOTB way of search and want to customize it?

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.



Best regards

Suyog

@Suyog Aptikar  Thats my client requirement. I can Explain once again. e.g. If I try to search col only COLeman Cuneo is visible, instead of that I need to visible all the user contains col (Cathryn NiCOLaus, COLeman Cuneo, Abraham LinCOLn, Dwain AgriCOLa and etc..).  Please let me know If you had any idea. Thank You.

@praveen1231 

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

Before you begin

Role required: admin
Procedure

  1. Disable the glide.ui.ref_ac.startswith system property.
    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 auto-complete query method for all users regardless of preferences.
  2. Navigate to User Administration > User Preferences.
  3. Select the preference "'<referenced table>.autocomplete.contains"'.
  4. Set the value field to true.
  5. Autocomplete user preference set to true
  6. Click Update.
    What to do next

Log out and log back in to display the updated search.

 

doc link: https://docs.servicenow.com/en-US/bundle/vancouver-platform-administration/page/administer/field-adm...

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.



Best regards

Suyog