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

Filter gallery on a button click

Hello, 

 

Can anyone please help me how to write thje formual for filtering a gallery on a button click? 

 

Thanks

Apaco

3 REPLIES 3
cwebb365
Level 8

Re: Filter gallery on a button click

Well it depends on where you are getting your filter value to filter the gallery? 

Community Support Team
Community Support Team

Re: Filter gallery on a button click

Hi @Apaco89 ,

Can you share a bit more about your issue ?

What do you want to filter the gallery base on ?

 

You can set items property of the gallery to a variable .

I made a test.

7.png

Set Items property of the gallery to :

Var1 

Set Onselect property of the button to :

UpdateContext({var1:Filter(CustomGallerySample,SampleHeading="Lorem ipsum 1")})

Regards,

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Apaco89
Level: Powered On

Re: Filter gallery on a button click

Hi, Thanks for your reply. I think this gives me an Idea. I am trying to create day number button for one week, when you click a day , data in the gallery should sort based on the selected date. -Apaco