How can I interchange the columns Name and Email which are displaying in reference field on Portal

DP_3105_2
Tera Contributor

I am having this requirement where I have to interchange the columns name and email which are auto displaying when we click on reference field. I have tried with variable attribute but the name column always remains there. Please suggest some solution

 

DP_3105_2_0-1751964772163.png

 

7 REPLIES 7

@DP_3105_2 @Ankur Bawiskar 
I just simulated this in my PDI and Ankur is right, the first column cannot be replaced, however the following order of the columns is editable

 

ref_ac_columns=name;email;first_name;last_name;
versus

ref_ac_columns=name;last_name;first_name;email;

 

It will be accordingly, removing the "name" or changing its position doesn't have any impact, just the second and further columns.

Please accept our solution due to the efforts we made in this. Thank you

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Hi @Ankur Bawiskar  thanks for your response but I have checked in User(sys_user) table for the name field Display value is false which is OOB configuration

 

DP_3105_2_0-1751969238448.png

 

@DP_3105_2 

yes that's correct. on sys_user table there is no field which is marked as Display=true

This is how system determines the display value 

Since sys_user table doesn't satisfy 1st 2 conditions, it checks the 3rd and finds name as exact column name and hence uses name as Display field

AnkurBawiskar_0-1751969464167.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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