cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
omi18
Post Partisan
Post Partisan

Combo Box

Hello People,

 

I have Multiple Combobox and a data table. I am trying to show data table fields bassed on Combobox selection. 

1) If the user selects a value from any Combobox values for other Combobox and table should change based on selection. 

2) if there is no selection in any Combobox data table must show all the record by default. 

 

Thanks,

Omi

1 ACCEPTED SOLUTION

Accepted Solutions
PowerAddict
Super User
Super User

Control your data table's datcards visibility based on combo box selections.

Also add an if condition that says if none are selected, show all.

So something like this:

If(ComboBox.Selected.Value = "Option1" || (IsBlank(ComboBox1.Selected) && IsBlank(ComboBox2.Selected)), true, false)

This one translates to the data card being visible if ComboBox1 has a value of Option1 OR if all combo boxes are blank.

Let me know if this helps.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

View solution in original post

2 REPLIES 2
PowerAddict
Super User
Super User

Control your data table's datcards visibility based on combo box selections.

Also add an if condition that says if none are selected, show all.

So something like this:

If(ComboBox.Selected.Value = "Option1" || (IsBlank(ComboBox1.Selected) && IsBlank(ComboBox2.Selected)), true, false)

This one translates to the data card being visible if ComboBox1 has a value of Option1 OR if all combo boxes are blank.

Let me know if this helps.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

Glad I could help! Good luck with the rest of your app! Feel free to reach out in case of any questions!

Thanks,
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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