auto-complete reference field typeahead column names?

Les1
Tera Guru

Use case:   service portal catalog request item reference field, we have reference qualifier pulling in some user table attributes (name, title, manager etc). Question is: has anyone seen if we can display the column names (ie Name, Title, Manager) in that autocomplete so that if showing multiple columns is clear what they are?  i've not yet seen that in docs

below image is from the docs page, not how the columns for Name and email display but not the column titles themselves. just wondering if there's a tweak to the qualifier that would display them. thanks

 

AutocompleteContains.png

2 REPLIES 2

Musab Rasheed
Tera Sage
Tera Sage

Hello,

If you are expecting Multiple fields to be display in reference field after selection then it's not possible but if you expect multiple fields once you type something then it's possible, refer below threads.

https://www.servicenow.com/community/it-service-management-forum/how-can-i-display-the-first-name-la...

See my instance:

MusabRasheed_0-1668780913570.png

 

Variable attribute:

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=nam;department;department.dept_head,ref_ac_columns_search=true

MusabRasheed_1-1668780983416.png

Please hit like and mark my response as correct if that helps
Regards,
Musab

MD AQUIB KHAN
Giga Guru

Hi ,

I hope. I understood your query

Please refer this link: Solved: Re: How to populate (auto suggestion) using user id... - ServiceNow Community

I tried to do in my PD. It is working. I tried on the incident form for the caller field. Hope it work for your requirement.

My Solution:

output:

MDAQUIBKHAN_0-1668780172393.png

 

Configuration details:

MDAQUIBKHAN_1-1668780259491.png

Added these attributes:

ref_ac_columns=email;title;manager; ref_ac_columns_search=true;