cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
VivekJaganath
Level: Powered On

help with checkbox in gallery

Hi Guys,

 

I have a gallery with checkbox and the items in gallery are dynamic and each item has a checkbox. I want to perform a simple validation to see if every check box in gallery item is checked or not. if all checkbox are checked only then perform a action.

 

i have tried uing below code but it dose not work

 

If(CountIf(Gallery_checklist_2.AllItems,Checkbox1.Value=true) >0,
Patch(
'[dbo].[create_case]',
{
Case_ID: case_id_checklist,
Internal_Status: "Close"
}
));
Navigate('My Cases',ScreenTransition.Fade);
Reset(Gallery_checklist_2)

1 REPLY 1
Dual Super User
Dual Super User

Re: help with checkbox in gallery

Try this for your If() instead

If(CountRows(Gallery_checklist_2.AllItems)=CountIf(Gallery_checklist_2.AllItems, Checkbox1.Value),...

That will check to see if the number of checkboxes checked equals the number of rows in the gallery.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,057)