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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,470)