- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2025 04:44 AM
Hi there,
I have a Service Portal Catalog item which contains a variable that is a reference to "cmdb_ci_computer".
When users fill in this field (variable), they have to fill in a value that is available as name (field "name") within "cmdb_ci_computer".
However, within "cmdb_ci_computer", we have created an additional field. It's called "u_stickernumber". Now I want users in the above mentioned case, to fill in the stickernumber instead of the name, to find/select the right record within "cmdb_ci_computer".
I attempt to achieve this, I gave my variable reference, the following "variable attribute":
"ref_auto_completer=AJAXTableCompleter, ref_ac_columns=u_stickernumber"
Unfortunately, this does not work. Anyone any idea how to do this?
Thanks and kind regards,
Adam
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2025 05:19 AM
that's correct, at least they can search with it
If my response helped please mark it correct and close the thread so that it benefits future readers.
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-18-2025 04:59 AM - edited ‎02-18-2025 05:01 AM
name field on Computer table is display=true so once user selects any record it will show only Computer name
you can show users when they type in the variable the Sticker number field using variable attributes
Nothing beyond this can be done. You should not make Sticker number field as Display=true on Computer table as it will be a global change
If you want them to search on that custom field then use this along with your current variable attributes
ref_ac_columns_search=true
If my response helped please mark it correct and close the thread so that it benefits future readers.
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-18-2025 05:14 AM
Thank you @Ankur Bawiskar !
"Nothing beyond this can be done. You should not make Sticker number field as Display=true on Computer table as it will be a global change."
I know indeed about this. That's not a good idea, because "Out-Of-The-Box" default, should stay as it is I understand?
"If you want them to search on that custom field then use this along with your current variable attributes ref_ac_columns_search=true."
If I understand you correct, by adding this to mu current variable attributes, I can search by "stickernumber" within this field, only at this Catalog Item (form), is that correct?
Thanks again for your reply!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2025 05:19 AM
that's correct, at least they can search with it
If my response helped please mark it correct and close the thread so that it benefits future readers.
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-18-2025 05:46 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader