How do I get two columns to display in a reference dropdown?

kimberlylp
Giga Guru

For example when I start typing in a reference field for a sys_user like a record producer I created it shows the user and the email.

The example pic below is from SN documentation showing the name and the department in the dropdown.

find_real_file.png

How do I do the same on a reference field I have for disposition codes and resolution codes?

1 ACCEPTED SOLUTION

SanjivMeher
Kilo Patron
Kilo Patron

You can add something like below to the attribute of the field

 

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=field1;field2,ref_ac_columns_search=true

refernce: https://docs.servicenow.com/bundle/london-platform-administration/page/administer/field-administrati...

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

View solution in original post

7 REPLIES 7

Thank you for your time. This was helpful.

indrasen
Tera Contributor

How do I get two columns to display in a reference dropdown for interactive filter on dashboard

Amala
Tera Contributor

Hi, how to display display department name (IT) instead of Name on the portal form, if I select the value from the drop down.