Hello - I have a gallery with check-boxes, the gallery is filtered by a set of buttons (located outside of the gallery), button1, button2, button3 etc. When I select the checkbox under button1, press button2, and go back to number one, the checkbox dissapears and the value of all items in the gallery is turned to true.
Checkbox onCheck property is:
Collect(SelectedItems,ThisItem)
Checkbox onUncheck property is:
Remove(SelectedItems,ThisItem)
What type of formula should the button have to retain the checked value of the gallery item?
Thank you
Here's the solution to this problem:
Checkbox Property:
OnCheck
collect(name,thisItem)
OnUncheck
remove(name,thisItem)
Default Property:
If(IsEmpty(Filter(name, ID = ThisItem.ID)), false, true)
Hi @mmollet - Thank you for the quick reply.
These checkboxes are located inside a gallery which is connected to a collection. The user will check the completed items and based on their response, the items will display to another gallery which will connect to a SP list. However, when I click any of the below boxes, the card turns to green checkboxes automatically disapear.
Here's an image of my checkboxes. In this instance:
Thank you again
I think what is happening is they are resetting bc it is fetching new data. I'm assuming that these checkboxes aren't tied to a column in the data source? If they aren't then you can add a column locally and make it default to false. Then use ThisItem.ThatColumn for the default values of the checkboxes.
Here is the syntax of the AddColumns function
AddColumns( Table, ColumnName1, Formula1 [, ColumnName2, Formula2, ... ] )
Something like:
ClearCollect(LocalSPListName, SPListName);
AddColumns(LocalSPListName, "isSelected", false);
Checkbox.Default -> ThisItem.isSelected
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2