Forum Discussion
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
- Hanne_LauritzenIron Contributor
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.
- josh_vtsCopper Contributor
Hanne_Lauritzen Oh, perfect! Not sure why I didn't think of this. Thank you!
- Rob_ElliottSilver 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)- josh_vtsCopper Contributor
Rob_Elliott Thank you, understood. Is there a way to eliminate that gap?