Hi @Anonymous ,
Just another suggestion:
I assume you want also your favorite to be saved or write back to the data source?
On your gallery's bookmark icon OnSelect() Property add this:
If(ThisItem.ID exactin favorites.ID,
Remove(favorites,ThisItem),
Collect(favorites,ThisItem)
);
Patch(
AttachmentTest,
First(
Filter(
AttachmentTest,
ID = ThisItem.ID
)
),
{
Favorite: If(
ThisItem.Favorite = "Yes",
"No",
"Yes"
)
}
);On Fill() Property:
If(
ThisItem.Favorite = "Yes",
RGBA(186, 202, 226, 1),
RGBA(
255,
255,
255,
1
)
)
On BorderStyle() Property: (Change Border Thickness to 1)
If( ThisItem.Favorite = "Yes",
None,
Solid
)
Please see images below:


You can tick and untick the icons to remove from the collection and from the DataSource.
----------------------------------------------------------------------------
Thanks,
K-A-R-L
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you thought this post was helpful, please give it a Thumbs Up.