cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
P_SA
Level: Powered On

Display current user and option to choose other user

Hello Folks, below are the scenarios that i need help with. Please suggest. 

 

1 > There is a form with a datacard.. I want the current user().email to be displayed in the datacard when the form is opened. 

2>  there is a onselect property on the datacard which pops put a combo Box where other users email can be selected. 

3> if another email is selected on the combo box , that should be displayed in the datacard instead of the current logged in user.. 

 

1.PNG2.PNG

3 REPLIES 3
Super User
Super User

Re: Display current user and option to choose other user

Set the items property of the form to something like this:

If(IsBlank(ComboBox1.Selected), Lookup(Users, Email = User().Email), Lookup(Users, Email = ComboBox1.Selected.Value))

Your formula might look a bit different but hopefully this gets you going. If not, let me know. Also, this assumes that when nothing is selected in the combo box, the form will display the current user's data.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com
P_SA
Level: Powered On

Re: Display current user and option to choose other user

i got this working thanks. 

Super User
Super User

Re: Display current user and option to choose other user

If my response helped you, please mark it as a solution and close the thread so others can find it easily.

Thanks!

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,510)