New answers tagged

0

Is there an existing instance of that workflow running, which you need to terminate first? If so, terminate all running instances.


1

Here's the easiest, simplest way I could come up with... if (someCondition == true) { $("#Ribbon\\.ListForm\\.Edit\\.Commit\\.Publish-Large").on("click",function(e){ e.preventDefault(); }).addClass("ms-cui-disabled"); }


2

If you want to display a content to the user only with 'Full Control' permission level use the below snippet <Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="FullMask"> <div id="s4-ribbonrow" > </div> </Sharepoint:SPSecurityTrimmedControl> Different base permissions EmptyMask : Has no permissions on the Web ...


0

You can easily do this using CSOM: Visit this link it will definitely help you Hiding browse and page tab from SharePoint 2013 for specific users


3

Create a group which contains users who cant see page and browse buttons in the ribbon or vice versa, The Below function will hide the browse and page tab from the ribbon function HideBrowseAndPage() { var SPGroupName = "YourGroupName"; var clientContext = new SP.ClientContext.get_current(); var currentUser = clientContext.get_web().get_currentUser(); ...


2

Create JavaScript or CSS code that hides the items from the ribbon Place that code inside Script Editor Web Part Use Audience targeting in web part properties to only "display" that web part to specific users (=to those from which you wish to hide the ribbon items)


1

I got to the bottom of this after contacting Microsoft. The problem was that the SSSvc site feature wasn't activated on the Central Admin site, which can only be enabled using PowerShell: Enable-SPFeature -identity " SSSvcAdmin " -URL http://centraladminURL


1

Please try to append the stylesheet into iFrame using below code. It actually works for me before in one solution. function setFrameStyle() { $('iframe').load( function() { $('iframe').contents().find("head") .append($("<style type='text/css'> #s4-ribbonrow{display:none;} </style>")); }); }


2

I was having same issue when i need to set CSS color for some element and it was over written with default CSS. So I just used some tricky way for that. Please try following code once and let me know its worked for you or not. Because it worked for me. function setFrameStyle() { var mySiteIframe = $("iframe"); mySiteIframe.load(function(){...



Top 50 recent answers are included