customising reference field within Service Portal view

nathantenaglia
Tera Expert

Hi all,

We've got a reference type within a form that provides a list of users from our sys_user table.

When accessing this field via the Service Portal, it's a simple clickable drop down as you can see below.

find_real_file.png

The issue I have, and I'm sure others too, is that it only displays a list of names. When there are multiple (duplicate) names like I've selected, it's impossible to know who is who and users are sometimes selecting the wrong person. This has become a pretty big issue for us.

Does anyone know how to customise this field so it can display multiple information within the drop down to differentiate users such as email address, etc. as well as the current display name? This has to be applicable within the Service Portal view, however.

1 ACCEPTED SOLUTION

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Nathan



Ok now is clear..my bed I thought about something custom.


You were working on a record producer..a variable. Right ?


You need just to set the this field



User___ServiceNow.png



Here's the result in the service catalog.



Customer_Service_Portal_-_Service_Catalog.png



Probably this is the answer you were looking for


View solution in original post

8 REPLIES 8

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Nathan


There is a way. Apparently you can use this attribute



display-fields="'fieldA,fieldB'"



Here's an example on my instance using location



<sn-record-picker field="location" table="'cmn_location'"   display-field="'name'" display-fields="'city,zip'" value-field="'sys_id'" search-fields="'name'" page-size="100" ></sn-record-picker>



Customer_Service_Portal_-_New_test.png



Here's an example with the usual single attribute


Customer_Service_Portal_-_New_test 2.png


I hope this will help...and in case is correct mark it


This seems to be okay but what if record been displayed using form widget.


Did you find any solution for it?

Would you mind showing me where you assigned the attribute exactly within the record producer?