Pages

Showing posts with label Sharepoint Office 365. Show all posts
Showing posts with label Sharepoint Office 365. Show all posts

Thursday, December 15, 2022

Hide Sharepoint Web Parts using Javascript

 I have placed List webpart to filter some value then pass to other Webpart to display filtered Content.

The following code will hide the List webpart then users will not see those Hidden Value.

you just find that webpart ID and add in the following code.

Add this to Script Editor Webpart. Publish the page then the web part will be hidden.


Work Around Code:

<script type="text/javascript">

document.getElementById('MSOZoneCell_WebPartWPQ6').style.display='none';

</script>