Tag Info

Hot answers tagged

2

Use JS library SPServices from codeplex to get current user permissions: http://spservices.codeplex.com/wikipage?title=GetRolesAndPermissionsForCurrentUser And then just hide the menu item with JS. The hardest part is to obtain the permissions, which can be done smoothly with SPServices. You can add this JS to edited master page, or develop custom control, ...


1

If you're a bit of a perfectionist as I am, and after a "right" way of doing things, and don't particularly like js/css hacks, then you might want to consider the custom action approach: <CustomAction Id="RemoveRibbonButton" RegistrationType="List" RegistrationId="{GUID-OF-YOUR-LIST-HERE}" Location="CommandUI.Ribbon.NewForm" > ...


1

You will want to modify the NewForm.aspx page as Colbs described in his answer, although the use of JavaScript is not strictly necessary. The "Commit" section's container in the Edit ribbon should have a unique ID assigned to it, which you can find by inspecting the page source. Once you've found the ID, you can set it's CSS Display property to "none" by ...


1

The solution is similar to the one I provided in this accepted answer: Attach a Javascript function to an OOTB ribbon button. Here's the code, adopted for your case: <CustomAction Id="TrackDownloadsAction" RegistrationType="List" RegistrationId="100" Location="CommandUI.Ribbon"> <CommandUIExtension> <CommandUIDefinitions> ...


1

This is not possible with pure SharePoint Online/O365.


1

You can call javascript function in UrlAction: <UrlAction Url="javascript:YourMethod();" /> Make sure you have js reference in master page or you can add it using following lines in your element file: <CustomAction ScriptSrc="/scripts/myScript.js" Location="ScriptLink" Sequence="1"> </CustomAction>


1

I had a question similar to this come up a while ago regarding creating a new style for the ribbon. I would guess you should be able to replace existing with your own this way. If I understand the question that's what you're trying to do. Hopefully this helps you out. Open Designer with the appropriate site collection that you want the style to appear. Go ...


1

Yes this is true, as per technet. Items 30,000,000 per list Supported You can create very large lists using standard views, site hierarchies, and metadata navigation. This value may vary depending on the number of columns in the list and the usage of the list. http://technet.microsoft.com/en-us/library/cc262787(v=office.15).aspx#ListLibrary But ...


1

This would help. There’s a JavaScript API for Creating Ribbons! http://dbremes.wordpress.com/2011/01/16/theres-a-javascript-api-for-creating-ribbons/ Intro to Manipulating the SharePoint 2010 Ribbon with JavaScript http://sharepointtaproom.com/2011/09/09/intro-to-manipulating-the-sharepoint-2010-ribbon-with-javascript/ Plus, surely, the same stuff can be ...


1

My complete solution for SharePoint 2013 - style ribbon-based rich-text editor. I made this some time ago, so I certainly borrowed some code from google. ASPX / ASCX: <div id="editor"> <div id="RTEDiv" tabindex="0"></div> <asp:HiddenField ID="RTEDivHidden" runat="server" /> <div class="commands"> ...



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