cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
biancadevera
Helper III
Helper III

Require data card when any checkbox in gallery not checked

I created checkboxes within a gallery. I would like to require a dropdown whenever nothing was selected in the gallery checkbox. How can this be done?

3 REPLIES 3
biancadevera
Helper III
Helper III

Please help @WarrenBelz @RandyHayes @BCBuizer 

BCBuizer
Super User
Super User

Hi @biancadevera ,

 

Can you please elaborate a bit on what the desired behaviour of the app is? What happens when a checkbox is selected? What is the dropdown supposed to do if no Checkboxes have been selected?

v-yujincui-msft
Community Support
Community Support

Hi @biancadevera ,

 

If you want to control the visibility of the Drop Down Control based on whether the Checkbox is checked, maybe you could try to select the Drop Down Control and apply the following formula on its Visible property as:

!Checkbox1.Value

Result Screenshot:

vyujincuimsft_0-1650351640393.png

 

In addition, if you want to show Drop Down Control when any checkbox in gallery is unchecked, maybe you could try to select the Drop Down Control and apply the following formula on its Visible property as:

If(CountRows(Filter(Gallery3.AllItems, Checkbox1.Value=true))=0,true,false)

Result Screenshots:

vyujincuimsft_3-1650353870668.png

 

vyujincuimsft_4-1650353889994.png

 

 

 

 

Best Regards,

Charlie Choi

Helpful resources

Announcements
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.

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.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

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