Is it possible to have multiple column display in a reference field at record producer

Subramanyam V
Giga Expert

Hi, 

 

I have an ask from business to display name and id from user table on the record producer form, when the end user searches for a user.

Eg : Ben Stokes (abcd1234) should be shown if the end user does a user search based on id. 

 

 

 

3 REPLIES 3

Nayan  Dhamane
Kilo Sage
Kilo Sage

Hello @Subramanyam V ,

Yes it is possible to show diiferent columsn use the bwlow code in variable attributes:

 

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=name;id,ref_ac_columns_search=true,ref_ac_order_by=name

If my answer solved your issue, please mark my answer as Correct & Helpful based on the Impact

Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.

Hello @Subramanyam V ,

Did you got a chance to check the solution provided by me?

 

If my answer solved your issue, please mark my answer as Correct & Helpful based on the Impact

Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.

Anurag Tripathi
Mega Patron
Mega Patron