How to hide full name using auto-complete for reference field

miro2
Mega Sage

Hi,

Does anyone know why I can’t hide the Full Name in the portal and instead show only the First Name and Last Name?

miro2_2-1762772347168.png

 

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=first_name;last_name;email;user_name,ref_ac_columns_search=true,ref_ac_display_value=false
miro2_1-1762772183724.png


This is what I should see according to SN docs

miro2_0-1762771976691.png
Is it because ref_ac_display_value=false doesn’t work for catalog items, so I can’t see it in the portal, and it only works on forms?

 

2 ACCEPTED SOLUTIONS

Brad Bowman
Kilo Patron
Kilo Patron

Yes, ref_ac_display_value doesn't seem to apply to Catalog Item variables, only table fields for some reason.  Your same attributes used as an override on the Assigned to for Problem, looks like this in my instance:

 

BradBowman_0-1762773212559.png

 

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@miro2 

the name field holds first + last name and OOTB that's the field which is display=true

Hence you can't avoid this

💡 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

3 REPLIES 3

Brad Bowman
Kilo Patron
Kilo Patron

Yes, ref_ac_display_value doesn't seem to apply to Catalog Item variables, only table fields for some reason.  Your same attributes used as an override on the Assigned to for Problem, looks like this in my instance:

 

BradBowman_0-1762773212559.png

 

@Brad Bowman Thanks for the quick reply. I've just tested it, and it works for forms only. Is there any workaround to hide the Full Name column?

Ankur Bawiskar
Tera Patron
Tera Patron

@miro2 

the name field holds first + last name and OOTB that's the field which is display=true

Hence you can't avoid this

💡 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