I am having a scenario, as a part of my requirement i need to show user email only my interface. I created picker user/ group. its shows names. but i want to show email for user my interface.
Discussion posts and replies are publicly visible
You can get the email of the entered user using user() function. You can add a text field below the user picker field where email can be displayed.
user(loggedInUser(),"email")
Hi,
You can use user(ri!userId,"email") to get the email of an user
You cannot configure the User Picker to display the email address in place of the User's 'display name', but you could derive the email address as suggested by the other responses, and display that as an additional piece of data in the form:
{ a!columnsLayout( columns: { a!columnLayout( width: "NARROW_PLUS", contents: { a!pickerFieldUsers( instructions: if( isnull(ri!selectedUser), null, fn!user(ri!selectedUser,"email") ), label: "User Picker", labelPosition: "ABOVE", value: ri!selectedUser, saveInto: { ri!selectedUser }, validations: {} ) } ) } ) }
If the user email to be shown instead of a name in the picker, then custom picker can be used instead of a user picker.