- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2018 07:56 AM
I'd like to know the best way to set a specific reference field to show a certain field instead of the "name" field when selecting choices. I have a field called "Office Location" and it uses the cmn_location table as the reference table. It now shows "name" field results when you click the search, I'd like for it to show our "SiteID" field instead. See screenshots below:
So Instead of what it's showing ("name") I'd like it to show the Site ID field. I don't want this to effect all of the cmn_location table for any time it's referenced, but for this particular catalog item(and any that are "office_location" in th Telecom category).
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2018 01:32 PM
I have overlooked your screenshot before, I see you have added it to the collection element of the table. You will have to put the attributes in the actual variable. Take out the attributes from the collection element of the location table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2018 09:27 AM
I have tried it on my personal instance, it worked for me. I have set the search based on country and in the type ahead it now only shows the countries and search based on the country.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2018 11:06 AM
Are you using the Service Portal and catalog items from there or from the "backend"?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2018 12:48 PM
I have tried it from the regular UI. Let me try it in portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2018 01:03 PM
Yeah mine wasn't working on the Service Portal. In the regular UI it opens the table window and we can see the columns there, but we need it to be able to be shown on the Portal UI.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2018 01:19 PM
It did work in the portal as well. But looks like for variable attributes ref_ac_display_value=false is not available. Rest of them worked, it did show the second field in the auto complete and I was able to search based on the field value mentioned in the ref_ac_columns attribute.