How to show additonal user field under this select box

VarunP531597688
Tera Contributor

VarunP531597688_0-1742223747464.png

 

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

You need to add the attribute to this variable

 

like this: ref_auto_completer=AJAXTableCompleter,ref_ac_columns=name;code,ref_ac_order_by=code

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

this is not the catalog variables. This is inbuilt lookup in widget.

phgdet
Mega Sage

Hi Varun, 
Do you use sn-record-picker? Try add more field in search-fields attribute following this topic.

 

Ankur Bawiskar
Tera Patron
Tera Patron

@VarunP531597688 

how it's getting rendered?

Did you add custom widget on your page?

Check the widget code and share here

If you are using sn-record-picker then check this link

Customize sn-record-picker to display two columns 

Also within your widget tag add the extra fields

<sn-record-picker 
    field="user" 
    table="'sys_user'" 
    display-field="'name,email'" 
    value-field="'sys_id'" 
    search-fields="'name'" 
    page-size="100" 
    default-query="'active=true'">
</sn-record-picker>

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