Forum Discussion
Martin Sagerstrand
Jun 22, 2021Brass Contributor
Hide a list webpart if the list is empty in Modern Pages
Hi,
we have a list with alerts that we want to show on the start page, however if the list has no alerts I want to hide the list web part, any ideas how this can be achieved or any other solution that might be interesting?
regards
Martin
- mattperry3000Copper Contributor
Martin Sagerstrand I would really like to see this to. We are wanting to use Lists for this exact same reason and would not want to resort to a script editor webpart and some JS to deliver.
- Kjetil J YtrehusCopper Contributor
I need this to. Have you done it with script editor web part as a work around yet?
(Im starting that job now)
- DavidllemCopper ContributorHello, have you been able to do it? In my page Home i wanted to hide a list if it is empty, but it only contains a single record with an important message.
Thanks.
Regards, David.