Include other attributes for search of caller

VernYerem
Tera Expert

Hello! I'm a somewhat new developer, and this was something I couldn't seem to find an answer for already. If my phrasing is off, please point me in the right direction.

 

In the caller/requested for field, you start typing and the username and email are searched. We've added a "Badge number" field to our users, and some supervisors prefer to use that to reference people. Is there somewhere where I can add this field to be considered in the search for users? 

Note: The display field needs to stay the name of the user, just looking to add the badge number to be searched as well. Meaning in the field I could type Name, Email OR Badge to find the user. 

1 ACCEPTED SOLUTION

VernYerem
Tera Expert

Figured it out! The service catalog item doesn't use the field, but rather a variable. Just needed to add those same attributes to the variable:

VernMeyer_0-1707233680011.png

VernMeyer_1-1707233695499.png

 

View solution in original post

4 REPLIES 4

VernYerem
Tera Expert

No ideas? 

VernYerem
Tera Expert

Thus far, I've found how to change it to our new Badge number field with:

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=u_badge_num,ref_ac_columns_search=true,ref_ac_display_value=true

 

Adding that attribute to the dictionary entry for reference field in question changes the field to search based on Display Name and Badge but removes the email search. Also, didn't seem to update the same field that's on the catalog item, but maybe that's changed elsewhere.

VernYerem
Tera Expert

To help illustrate the issue, I've changed the dictionary entry for "requested_for" and the result has been:

Works as expected in the Standard UI.
Works as expected in the Service Operations workspace.

Does not work as expected in the Service Catalog Item.

 

BadgeNumber-StandardUI.png

BadgeNumber-ServiceOperations.png

BadgeNumber-EmployeeCenter.png

VernYerem
Tera Expert

Figured it out! The service catalog item doesn't use the field, but rather a variable. Just needed to add those same attributes to the variable:

VernMeyer_0-1707233680011.png

VernMeyer_1-1707233695499.png