cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jbend088
Frequent Visitor

Filter different dropdown items using a combobox

Hello Power Platform Community, 

 

I have a Customized SharePoint form and I am trying to filter different dropdown sharepoint columns using a combobox. I am trying to get it so when the column title names corresponding to the dropdowns are selected, they appear, and if not, they are not visible. I attempted this using the code below; however, this code only displays the first dropdown selected by the combobox, and will not display multiple dropdowns if selected. How can I go about achieving this? Thanks in advance. 

 

(drpRiskSelection is the name of the combo box I am trying to filter, and "Risk Type" is one of many column dropdowns I am trying to display when selected. This formula is applied to each column dropdown I have, with its respective column name equating to drpRiskSelection)

 

Visible = If(
drpRiskSelection.Selected.Value = "Risk Type",
true,
false
)

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @jbend088 ,

That is not what I posted

"Risk Type" in drpRiskSelection.SelectedItems

Depending on the drop-down Items, you may need

"Risk Type" in drpRiskSelection.SelectedItems.Value​

Value will depend on the Items, but if a Choice field, this will be correct.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @jbend088 ,

Try putting in the Visible

"Risk Type" in drpRiskSelection.SelectedItems

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

Hi @WarrenBelz ,


Thank you for your response. Unfortunately, when I try doing drpRiskSelection.SelectedItems = “Risk Type” , I get an error message saying I cannot compare a table value to a text value. 

Hi @jbend088 ,

That is not what I posted

"Risk Type" in drpRiskSelection.SelectedItems

Depending on the drop-down Items, you may need

"Risk Type" in drpRiskSelection.SelectedItems.Value​

Value will depend on the Items, but if a Choice field, this will be correct.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (4,401)