3 votes
Accepted

SPSecurityTrimmedControl on Surveys overview.aspx

The SPSecurityTrimmedControl is nothing more than a container that works by stopping its Render event when the specified permissions aren't meet. It doesn't enforce security of links - it just make ...
SPArcheon's user avatar
  • 6,868
3 votes
Accepted

SPO: How to security trim html elements?

Short answer: Not supported Longer Version: Add a list with links, trim the items in the list and add a list Webpart to the page
Heiko Hatzfeld_MSFT's user avatar
2 votes
Accepted

SPSecurityTrimmedControl isn't executed in the edit mode

I've found the reason. The problem was in this condition - if (document.getElementById("Ribbon") != null) but no in SharePoint:SPSecurityTrimmedControl. Thank's everyone for your answers.
Dmitry's user avatar
  • 41
2 votes

How to show/hide div tag based on the user permission

You can use SharePoint Security Trimmed Control as mentioned at Hide SharePoint 2013 Ribbon based on Permissions Also, you can use a SPServices to hide DIV with its ID if the current user belongs to a ...
Mohamed El-Qassas MVP's user avatar
2 votes

Sharepoint Foundation 2013 Hide Webpart on page

You can get the correct WebPart ID as shown below, The orange colored ID specifies the webpart ID. Note : Make sure you add the below code using Content Editor Web Part or Script Editor Webpart ...
Priyaranjan KS's user avatar
1 vote

Sharepoint Foundation 2013 Hide Webpart on page

You can use JavaScript. Add a content editor to the page and then edit the HTML of the content editor with this: <script type=”text/javascript”> document.getElementByID('YOUR_WEB_PART_ID')....
ranbo's user avatar
  • 949
1 vote

How to show/hide div tag based on the user permission

The proper solution will depend on where you put the DIV tag (e.g. Masterpage (HTML vs. .NET), Page Content, Content Editor Web Part). You should look into the SPSecurityTrimmedControl. Here are ...
MLF's user avatar
  • 1,138

Only top scored, non community-wiki answers of a minimum length are eligible