Show / Hide DIV tag based on user group in SharePoint via SPServices

In this hint, I’ll elaborate How to

Show / hide HTML tag. in case , the current user belongs to a specific Group in SharePoint.

Show Hide DIV tag based on user group in SharePoint via SPServices


Scenario

Consider you have a SharePoint Page that holds two Script Editor Web Part or more, and each Script Editor Web Part has its independent DIV as shown below.

Show or Hide a DIV tag based on a user group in SharePoint via SPServices

Now, you need to hide the left (DIV) with ‘< div id="ID1"> Qassas div ID1< /div > from all users who belong to a specific SharePoint Group in your SharePoint site.


Check if the current user belongs to a specific Group In SharePoint

Steps:
Continue reading “Show / Hide DIV tag based on user group in SharePoint via SPServices”
Advertisements