List of E-mail address to be populated for the users to select. No need of User name.

Not applicable

List of E-mail address to be populated for the users to select. No need of User name.

There is a field in a Catalog form and it should show the e-mail address of all the users from User table.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@Community Alums 

you can use Lookup select box variable with Lookup label as Email and it will be like this

User can select only 1 user.

If you want to select multiple then use List Collector and use variable attributes

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

AnkurBawiskar_1-1741260296998.png

 

 

AnkurBawiskar_0-1741260275605.png

 

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

View solution in original post

3 REPLIES 3

fibssy
Tera Guru

You may want to use a variable with:
Type: Lookup Select Box.

Lookup from table: User (sys_user)

Lookup value field: Email

fibssy_1-1741260696042.png



fibssy_0-1741260665841.png

 



Please mark as helpful if this helped you.

Dr Atul - LNG
Tera Patron

Hi @Community Alums 

 

We had same post yesterday,  OOTB user name will be displayed and it is not recommend to change.

 

https://www.servicenow.com/community/developer-forum/display-field-for-a-reference-variable/m-p/3196...

Ankur Bawiskar
Tera Patron

@Community Alums 

you can use Lookup select box variable with Lookup label as Email and it will be like this

User can select only 1 user.

If you want to select multiple then use List Collector and use variable attributes

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

AnkurBawiskar_1-1741260296998.png

 

 

AnkurBawiskar_0-1741260275605.png

 

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