The Zurich release has arrived! Interested in new features and functionalities? Click here for more

reference Field to only display user Id and not name

David Cross
Tera Expert

This is my reference field in catalog item where only name is being displayed, please help me I only want the User ID to be displayed, what to do here 

I tired : ref_ac_columns=user_name > did not work 

find_real_file.png

User ID:

find_real_file.png

1 ACCEPTED SOLUTION

Hi,

like this

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=user_name,ref_ac_columns_search=true,ref_ac_order_by=name

Regards
Ankur

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

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

OOB on user table name field would be shown as system considers it as Display=true field

If you wish to show user ID then you will have to set Display=true on user name field but note this is platform level change

Regards
Ankur

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

Is it not possible to show it in particular catalog Item requested for field [ ref ]

nope

Once you select the user it would show name only

If you wish to show user_name when user types then you can use ref_ac_columns attribute

Regards
Ankur

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

Can you give an example for ref_ac_columns

i used the below, but did not work

 

find_real_file.png