How change the search default from Start with to Contains

Alon Grod
Tera Expert

Hi,

 

I have a problem that if the user start typing words into a reference field, he only gets result of everything that start with instead of contains, for example:
If I have a reference field to the sys_user table, and the user will start typing 'Moses', he will only get get the users that start with Moses, but if there is a user 'Alon Moses', he wont come up in the search. How can I change the default search of the system to be Contains instead of Start with?

Screenshot 2023-07-16 at 22.19.33.png

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0823869

Instructions

  1. Navigate to sys_properties table
  2. Search for and open glide.ui.ref_ac.startswith
  3. Change the value to FALSE
  4. Issue a cache.do

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

3 REPLIES 3

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0823869

Instructions

  1. Navigate to sys_properties table
  2. Search for and open glide.ui.ref_ac.startswith
  3. Change the value to FALSE
  4. Issue a cache.do

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

@Mark Roethof what does it mean step 4, issue a cache.do ?

For example: Type in the filter navigator "cache.do" + ENTER

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn