- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Currently, on this reference field when typing it shows results from the 'name' field. How can I get it so when i type it also brings back results from 'code' field. If that makes sense?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
@joshmorris Usually this type of autocomplete search mostly works on display field i.e. name.
If you also want it to search by another field like Code, then you can use Attribute on reference field.
ref_ac_columns = code; OR = code, name // shows both;
ref_ac_columns_search = true;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
in the dictionary add this
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=code,ref_ac_columns_search=true,ref_ac_order_by=name
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
@joshmorris Usually this type of autocomplete search mostly works on display field i.e. name.
If you also want it to search by another field like Code, then you can use Attribute on reference field.
ref_ac_columns = code; OR = code, name // shows both;
ref_ac_columns_search = true;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
in the dictionary add this
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=code,ref_ac_columns_search=true,ref_ac_order_by=name
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @joshmorris
Navigate to sys_dictionary.list in Application navigator
Search for your code field.
update following in the attribute field
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=code,ref_ac_columns_search=true