Forum Discussion

josh_vts's avatar
josh_vts
Copper Contributor
Oct 29, 2024
Solved

Conditionally hide item in custom gallery view

Hi all,

 

Is there a way to conditionally hide an item in a custom view (gallery) based on the value of a Yes/No column? See screenshot below for my attempt using CSS 'display', but I find that it still leaves an empty slot in the list.

 

Any suggestions?

 

Thank you! 

 

  • josh_vts You don't have to do this with json formatting, this can be done with regular settings in the view. Create a view in the list and add then filter the list as needed: In your case Isvisible = false.

     

4 Replies

  • josh_vts You don't have to do this with json formatting, this can be done with regular settings in the view. Create a view in the list and add then filter the list as needed: In your case Isvisible = false.

     

  • Rob_Elliott's avatar
    Rob_Elliott
    Silver Contributor

    josh_vts yes it will always leave a gap because the item s still there, it's just not being displayed.

     

    Rob
    Los Gallardos
    Microsoft Power Automate Community Super User.
    Principal Consultant, SharePoint and Power Platform WSP Global (and classic 1967 Morris Traveller driver)