We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to add email attribute in user field available on UI page

Ganesh65
Tera Expert
 
 

sourcing task .pngThis is sourcing page. want to add email attribute in user reference field along with existing name . 

8 REPLIES 8

GEMC
Tera Contributor

hi @Ganesh65 ,

you can add column attribute to g:ui_reference like below:

<g:ui_reference
id="caller_id"
name="caller_id"
table="sys_user"
query="active=true^emailISNOTEMPTY"
completer="AJAXTableCompleter"
columns="name;email;department"
value=""
displayvalue=""
onChange="onCallerChange();" />

Ankur Bawiskar
Tera Patron

@Ganesh65 

did you identify the UI page for this?

you can add some extra attributes in g:ui_reference tag if that's being used

💡 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Ganesh65
Tera Expert

Thanks , @GEMC , @Ankur Bawiskar 

source_request is the UI page but i dont see any reference to user table .  

@Ganesh65 

is it calling another UI page  or UI macro from within that main ui page?

did you check that?

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