cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rknight
Helper II
Helper II

**POSSIBLE BUG** Values of checkboxes in a gallery are not being read.

Hi PowerApps community!

 

I am creating an inventory app for our internal use. I have a gallery of data from a SharePoint list with a checkbox for each item. When the item is checked, it adds it to a collection which is then pulled into another gallery on a pop window.

 

If you check multiple items, then deselect any one of them, the Notify action reads it all as no checked boxes. The pop up window to update quantities doesn't come back up until you uncheck everything, then the Update button works as intended. Screenshots are below.

 

rknight_1-1614308858121.png

Update Button Code: If(Checkbox2.Value=true,Set(_popup,true),Notify("Please select one or more options."))

 

rknight_2-1614308922825.png

 

Deselect Red 10 ft. and the Notify action goes.

rknight_3-1614308964211.png

 

Any thoughts would be insanely helpful! 

1 ACCEPTED SOLUTION

Accepted Solutions
rubin_boer
Super User
Super User

hi @rknight this function check the last check box value your acted on, so it is false for that checkbox and false for "all". add a counter to check if any checkbox is true, something like Set(_Checked, CountRows(Filter(Gallery1.AllItems,Checkbox2.Value=true))) then evaluate that variable to show the pop up

If(_Checked > 0,Set(_popup,true),Notify("Please select one or more options."))

 

Hope it helps

 

 
hey there if you liked the post give it a thumbs up, and if it solved your question please accept it as a solution.

View solution in original post

2 REPLIES 2
rubin_boer
Super User
Super User

hi @rknight this function check the last check box value your acted on, so it is false for that checkbox and false for "all". add a counter to check if any checkbox is true, something like Set(_Checked, CountRows(Filter(Gallery1.AllItems,Checkbox2.Value=true))) then evaluate that variable to show the pop up

If(_Checked > 0,Set(_popup,true),Notify("Please select one or more options."))

 

Hope it helps

 

 
hey there if you liked the post give it a thumbs up, and if it solved your question please accept it as a solution.
rknight
Helper II
Helper II

You rock! Worked flawlessly. Thank you for your assistance!

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,116)