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 / Cascading Combo Box
Power Apps
Answered

Cascading Combo Box

(0) ShareShare
ReportReport
Posted on by 327

This message is not to ask for help, but to provide a tutorial on how to setup cascading combo boxes in an edit form with a SharePoint list as the data source.  I created an app for this, however, using a customized Power App form should also work.  This is not a new thing, but it took me months to figure it out.  The following provides instructions on setting up cascading combo boxes with a State and City column.  I included notes on some steps because I've noticed the formulas are slightly different when I am on my own tenant versus the tenant for my organization.  

 

Drop down boxes are easier to configure for this, but I can't search with a drop down box.

 

Cascading combo box instructions (naming convention for lists, columns, data cards, etc. can be whatever you want):

 

  1. Create a list to act as the lookup list and then create another list that will use the cascading combo boxes.  Example:
    1. List 1 - lookup list with State and City columns (both single line of text fields)
    2. List 2 - Second list with Employee info including their state and city as single line of text fields
  2. Create a Power App and attach list 1 and list 2
  3. Create the app with a gallery, edit form, and set the data source to List 2 (create display form if desired)
  4.  On the List 2 Edit Form, click on the State_DataCard, unlock it, click on DataCardValue, delete it, then add a combo box and select the List1 data source.  Repeat these steps for the City_DataCard.
  5. Rename combo boxes to CbxState and CbxCity
  6. CbxState:
    1. Update the Y ErrorMesage with the “CbxState.Y + CbxState.Height” or use a custom value
    2. Items: Sort(Distinct(List1, State), Value) 
      1.       Note: Use the system name for the State column if there is an error. 
    3. DefaultSelectedItems: {Value:Parent.Default}
      1.       Note: Use {Value:Parent.Default} if field is blank when viewing an existing item on the edit form)
    4. OnChange: Reset(CbxCity)
      1.       Note: be sure this is resetting the city and not the state combo box
    5. State_DataCard - Update: CbxState.Selected.Value
    6. DisplayFields: [“State”]
      1.       Note 1: do not copy and paste this… type it in
      2.       Note 2: This property may revert back to [“Value”] on its own
    7. SearchFields: [“State”]
      1.       Note 1: do not copy and paste this… type it in
      2.       Note 2: This property may revert back to [“Value”] on its own
  7. CbxCity:
    1. Update the Y ErrorMessage with the “CbxCity.Y + CbxCity.Height” or use a custom value
    2. Items: With({wState:CbxState.Selected.Value},Filter(List1,State = wState))
    3. DisplayFields: [“City”]
    4. SearchFields: [“City”]
    5. DefaultSelectedItems: If(ThisItem.State = CbxState.Selected.Value, LookUp(List1, City = ThisItem.City))
    6. City_DataCard – Update: CbxCity.Selected.City
  8. Test the app after populating List 1 with a few states and cities

That's it.  I am not an expert on this setup, but I will try to help anyone that run into issues.   

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Alex-W ,

     

    Thanks for your sharing.

     

    Best Regards,

    Wearsky

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard