How to set a reference field to display results from a different field than "name"

booher04
Tera Guru

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:

find_real_file.png

 

find_real_file.png

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).

1 ACCEPTED SOLUTION

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.

View solution in original post

19 REPLIES 19

I would not recommend change display value of the tables.

In a choice list you can use atributes to do it.

 

ref_auto_completer=AJAXReferenceChoice

ref_ac_display_value=false

ref_ac_columns= list of columns separated by a semicolon

Does this only work on Choice list fields and not on Reference fields?

goulart
Tera Contributor

It should work on reference fields. 

Have you already tried ?

Yeah it's not working on the catalog item in the Service Portal.

SanjivMeher
Kilo Patron
Kilo Patron

Did you add the attribute to the variable or to a field in your target table?

It should be added to your variable in the catalog


Please mark this response as correct or helpful if it assisted you with your question.