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 / Auto Populate Power Ap...
Power Apps
Answered

Auto Populate Power Apps Combo Box based on Another Field

(0) ShareShare
ReportReport
Posted on by 216

Hi everyone!  I am relatively new to PowerApps and really struggling.  I have a SP list titled "MSL" and on that list I have a Name Column (which originally was the Title column but renamed it and it's a text), and Project column which is a choice column.  On my PowerApps form I need the "Name" Column to become a combo box, and based on the name selected will auto populate the Project combo box (which I would like to make non-editable on this form if possible).  Can someone please assist me with this because I am banging my head on the wall and have tried 100's of things I saw on the web, but no luck.  Thanks!

Categories:
  • abouchaalaBAIT Profile Picture
    932 Moderator on at

    Could you please better explain your needs. 

    I understood that you have a SharePoint list with 2 columns : Title(Text) and Project(Choice)

    In your power apps, you want a Combo box named name that will populate all the Value found in the SharePoint list from Title field ? 

    Based on the name chosen, you need to lookup the Project Choice value, right ? 

    What I can't understand, If Project choice should be ReadOnly, how would users select an option ? 

  • Brian_S Profile Picture
    216 on at

    Hi.  Thank you so much for your message.  You are absolutely correct on your understanding in that on the PowerApps form I want to use the Title column (which I titled "Name") as a combo box.  For project I want the project to be a non-editable combo box and lookup the value by name.  The reason I want to make this field non-editable is because this is going to be part of a Status Change form and this part of the form is going to be the current information, and then I will have another field that will allow them to identify the changes needed.  

  • abouchaalaBAIT Profile Picture
    932 Moderator on at

    You are welcome, Ok try this

    In order to populate Distinct Titles in Name, put this code in the items property of a combo box

    ForAll(Distinct(MSL,Title), {Result: ThisRecord.Value})

    If you want to remove the blank value

    Filter(ForAll(Distinct(MSL,Title), {Result: ThisRecord.Value}),Not(IsBlank(Result)))

     If you want to sort them 

    Sort(Filter(ForAll(Distinct(MSL,Title), {Result: ThisRecord.Value}),Not(IsBlank(Result))),Result)

     

    ----------------------------------------------------------
    If I have answered your question, please mark your post as Solved. 🆗✔️
    If you like my response, please give it a Thumbs Up. 👍
    You can accept more than one post as a solution.
     

  • Brian_S Profile Picture
    216 on at

    Thank you so much.  I will put this in the Name box, but how do I auto populate the project combo box?

     

  • abouchaalaBAIT Profile Picture
    932 Moderator on at

    with a Lookup

     

    LookUp(MSL,Title = yourDrp.SelectedText.Value ).Project

     

    ----------------------------------------------------------
    If I have answered your question, please mark your post as Solved. 🆗✔️
    If you like my response, please give it a Thumbs Up. 👍
    You can accept more than one post as a solution.

  • Brian_S Profile Picture
    216 on at

    Thanks so much.  I put the below in the Default section of the drop down box for Project and I am getting an error.  LookUp(MSL_Master,'Name (Title)'= drpName.Selected.value ).Project

     

    I am sure I screwed it up somewhere but cant seem to find it.

     

  • Verified answer
    abouchaalaBAIT Profile Picture
    932 Moderator on at

    are you getting an error ? 

  • Verified answer
    Brian_S Profile Picture
    216 on at

    Hello.  Yes the error symbol when trying to add the combo box and when trying to autopopulate the project field.  I am truly sorry for all this trouble.

     

  • Brian_S Profile Picture
    216 on at

    Hi.  It was me that screwed it up - go figure :).  I got it working - thanks so much!!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard