Tag Info

New answers tagged

-1

Try this code var tab = ribbon.getChild(your_tab_id);


1

This is not possible with pure SharePoint Online/O365.


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 ...


0

In SharePoint Designer, navigate to the NewForm.aspx file under your specified list. Edit this in advanced mode and within the 'PlaceHolderAdditionalPageHead' place this script (Ensure jQuery is being referenced in the MasterPage being used): <script> $( document ).ready(function() { $( "a:contains('Save')" ).css( "visibility", "hidden" ); ...


0

I realize that this response is very delayed but I figured out how to do this after a lot of reverse engineering and maybe this will save someone else some time. To better understand and improve on this example, it will be helpful to: Have an understanding of how a ribbon is created and how commands are registered Take a look at the sp.ribbon.js file and ...


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> ...


0

Site setting -> Navigation -> Show and Hide Ribbon Setting Make "Show Ribbon" and "Hide Ribbon" commands available to No


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"> ...


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

I simply added below CSS and it worked for me: body{ overflow-y:auto; overflow-x:auto; }


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, ...


0

I was originally going to suggest this location: Ribbon.WikiPageTab.PageActions But i did a quick search and this guy's blog has more detailed information. http://sanderschutten.blogspot.com/2010/05/adding-buttons-to-mss2010-ribbon.html


0

Maybe this can help you. It is a farm solution that permit to copy element of a list. The button copy is in the ribbon tab. SP List Item Copy enables a user to copy SharePoint list items. User can use this feature easily via Ribbon UI.


0

I tried the same approach using SharePoint 2013 provider hosted app but did not work out. I ended up writing CSOM code to add custom action for ScriptLink control. CSOM code executes when App is installed using AppInstalled remote event receiver. Please refer to blog here for more. Also, to simplify user experience for the page redirection, you can launch ...


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>


0

The "System Master Page" is what I was looking for. Site Settings > Masterpage > "System Master Page". I referenced my CSS file in the System Master Page and it worked. SPM: <SharePoint:CssRegistration Name="/Style Library/myRibbon.css" runat="server"/>



Top 50 recent answers are included