cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dorinda
Super User
Super User

Update Label based on App Onstart or ComboBox

I have a label on my start screen that when the user logs in it lookup in a list there desk location, this works well, however I now need to add the ability to have that information update if the supervisor who is logged in puts in a different employees name in a combo box and I want it to update the information in the label

 

I have this on the label now

LookUp(mapPins,varCurrentUserName='Current Occupant'.DisplayName).Location & " - " 

my combobox is called cmb_Employee

 

Is this possible?

1 REPLY 1
StalinPonnusamy
Super User
Super User

Hi @Dorinda 

 

Set the text property of the label control to

If(
    IsBlank(cmb_Employee.Selected),
    LookUp(mapPins,varCurrentUserName='Current Occupant'.DisplayName).Location & "-",
    LookUp(mapPins,cmb_Employee.Selected.DisplayName ='Current Occupant'.DisplayName).Location & "-"
)

 


Thanks, Stalin (Microsoft MVP)
Blog - Learn To Illuminate Blog
YouTube - Learn To Illuminate Videos

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,895)