web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Set the default of a c...
Power Apps
Unanswered

Set the default of a combo box based on a label text

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

I am currently on an app and this is the last piece and I can't seem to figure it out. I have a combo box that is pulling the user names from Office365Users.SearchUser. I then have a label populating with the selected item from the combo box. I am now trying to go the other way. 

 

I have an edit screen that I have created not using a form, it is manually created. I am trying to show all the data that is in the database when a user goes to that edit page. The part that I am struggling with is populating the combo box with the text that is in a label. 

 

What I think I need to do but I can't seem to figure out to do it is I think I need to search the combo box to find the email that is in the label and then display that email. 

 

More context: When a user fills out the form and saves it they are able to open the form in an edit mode. It will populate all filled out fields and leave the fields that have not been saved blank. There is section at the bottom where they can select their manager, director and the vice president to sign off on this request. If the user saves the form with the emails already selected I would like to populate them in the combo box but still give the option to select/search for a different person from the combo box.

 

I am hoping someone can help me or send me in the right direction for googling so I am not wasting anymore time. 


Thanks

Categories:
I have the same question (0)
  • Bill_Laimbeer Profile Picture
    20 on at

    The combo box's DefaultSelectedItems property should be set to something like this (assuming the label is named Label1):

     

    LookUp(
     Office365Users.SearchUserV2({isSearchTermRequired: false}).value,
     Mail = Label1.Text
    )

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard