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

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.

If it worked kindly mark my response correct


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

Thanks for you help. This was helpful.

sachin_namjoshi
Kilo Patron
Kilo Patron

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=department;id,ref_ac_columns_search=true

 
Then after clicking the Magnifying Glass on your new field, right click on one of the column headings and choose Configure > List Layout.
 
Regards,
Sachin