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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filtering a combo box ...
Power Apps
Answered

Filtering a combo box - default items not updating

(0) ShareShare
ReportReport
Posted on by 289

Hi Guys,

I have two combo boxes, cmb_ProductFamily and cmb_ProductLine

 

cmb_ProductFamily properties:

Items: Sort(Distinct('Products', Title),Result)

DefaultSelectedItems: {Value:ThisItem.Product Family'}

 

cmb_ProductLine properties:

Items: Sort(Distinct(Filter('Products',Title=cmb_ProductFamily.Selected.Result),product_line),Result)

DefaultSelectedItems: {Value:ThisItem.'Product Line'}

 

Please consider this scenario...

 

I make a selection using cmb_ProductFamily, I then make a selection to cmb_ProductLine. I then choose a different option in cmb_ProductFamily and the value in cmb_ProductLine doesn't clear, potentially allowing my user to enter an invalid selection.

 

How can I clear the value in cmb_ProductLine when cmb_ProductFamily changes?

Categories:
I have the same question (0)
  • Verified answer
    shoog Profile Picture
    2,164 on at

    In the onChange event of cmb_ProductsFamily add Reset(cmb_ProductLine)

  • JimJim Profile Picture
    289 on at

    So simple, thank you

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 402

#2
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 293 Super User 2025 Season 2

Last 30 days Overall leaderboard