Display 2 fields in a reference field

Victor10
Tera Contributor

Hello,
I need to display 2 fields like "number" and "name" in the reference field. So, both are searchable and displayed.
How to achieve that?

 

I potentially have an answer but want to check and confirm.
By adding the following attributes would display the both fields while searching but not when the value is selected:

ref_ac_columns=number;name,ref_auto_completer=AJAXTableCompleter,ref_ac_columns_search=true


This is for my CSA path.
Thank you for your help in advance.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@Victor10 

You can search on multiple columns on table only 1 field can be marked as Display=true

So once you select record in reference field it will always show that field

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Adrian Ubeda
Mega Sage

Hello @Victor10 , 

I'm afraid as a display value for a table you can only select one field/value, however in the attributes of the field you can show more columns or make it searchable for being easier for the User (as your are doing)... But finally you'll show only one value/field 

If it was helpful, please give positive feedback! ✔
☆ Community Rising Star 22, 23 & 24 ☆

Ankur Bawiskar
Tera Patron

@Victor10 

You can search on multiple columns on table only 1 field can be marked as Display=true

So once you select record in reference field it will always show that field

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader