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 ...
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
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.
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 ...
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 ...
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')....
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
spsecuritytrimmedcontrol × 10sharepoint-server × 3
2013 × 2
permissions × 2
master-page × 2
security-trimming × 2
sharepoint-online × 1
sharepoint-designer × 1
web-part × 1
document-library × 1
ribbon × 1
html × 1
custom-masterpage × 1
hyperlink × 1
aspx × 1
designer × 1
suitebar × 1