- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2018 05:59 AM
How can we change the search on reference field from begin to contains and also restrict it to one particular item.
i,e there are two reference field used in an item .the search on reference field should be changed from begins to contains only for these two variables used in this item only.it should remain the same for other.Can we achieve as i know that disabling glide.ui.ref_ac.startswith system property will be reflecting on all reference fields.
Can anyone please suggest your views this would be helpful.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2018 06:49 AM
Hi Puroshotham,
By default system searches reference fields with starts with. if you set that property glide.ui.ref_ac.startswith to false then it will be global one.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2018 06:49 AM
Hi Puroshotham,
By default system searches reference fields with starts with. if you set that property glide.ui.ref_ac.startswith to false then it will be global one.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2018 06:59 AM
Hi Bawiskar,
Thanks for the reply
Can't we restrict it from applying globally.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2018 07:18 AM
Hi Puroshotham,
It seems to be global property and will affect all reference field.
you can set user preference though so what will happen is that for specific users it will use contains operator instead of startswith. This solution will work if for limited users you want contains operator and won't work for large set of users.
https://docs.servicenow.com/administer/field_administration/task/t_ContainsAutoCompleteSearch.html
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2018 10:05 AM
Hi,
How do you make it user specific? Will appreciate a quick answer as I need it soon.
Thanks!