Custom actions enables expanding or extending the standard behavior of SharePoint 2010 core components.

learn more… | top users | synonyms

9
votes
2answers
9k views

Show custom action in ribbon for only one list

Does anyone knows how to show a custom action in the ribbon for only one list? At this moment I've got multiple custom lists, but my button is added on all of them. I only want to show it on one ...
8
votes
1answer
5k views

How do I show a loading div when opening a modal dialog from a CustomAction?

I have created a new CustomAction which is a new item (link) in Site Actions menu. When you click it, it opens a modal page (aspx). Everything works fine, but it takes about 3 seconds to open the ...
6
votes
2answers
305 views

Is it possible to add custom actions to a version?

I need to add a custom action to versions of a file. Optimally, I want it on the Version History page: A second best would be the version display form (the result of clicking View on the previous ...
5
votes
4answers
5k views

Get current web url in a SPRibbon Custom Action Command

I've a SPRibbon custom action with the purpose of open an custom app page in a modal dialog, but I'm getting troubles for getting the current web URL, as well, set a reference for a .js with the right ...
5
votes
4answers
3k views

Custom activity created and appearing in Actions list in SPD, but cannot select it

I've been following several examples regarding custom actions. I've been trying to deploy my own one, but although I can see the action inside SPD, when selected it doesn't appear in the workflow ...
5
votes
1answer
252 views

Need help specifying the location of a Custom Action

Spawned from this question. I have been able to add a new link to my Central admin page under the Monitoring->Timer Jobs section. My problem is that I have been unable to figure out how to add it ...
5
votes
1answer
531 views

How to make custom workflow activity parameter optional

I'm developing a custom Sharepoint 2010 workflow activity and I need some of it's parameters to be optional. For example, I need a user, using Sharepoint Designer, to be able to specify document path, ...
5
votes
2answers
2k views

Unable to hide LoginAsDifferentUser menu in SP2010

I need to hide the "Sign In as Different User" option on the "Welcome" menu for all users. This is for SharePoint 2010. I have tried adding a customaction feature using the xml below, which didn't ...
4
votes
2answers
7k views

How do you create a Ribbon Button custom action that will appear on all kinds of lists

I want to create a ribbon button that will work with all kinds of lists. I mean, the same custom action should work against lists, document libraries, Announcement lists, etc.. Also. It should work ...
3
votes
2answers
2k views

Hide start workflow menu

I want to hide "start workflow" menu with hidecustomaction This example is from a sharepoint book. <HideCustomAction Id="RemoveRibbonButton" ...
3
votes
2answers
2k views

Where do “My site” and “My profiles” links come from?

Under the personal action menu, there are two links : My site My profile I'm trying to understand how they are generated and by which component/feature. However the highest container in the ...
3
votes
3answers
3k views

How do I create a Custom Action for a Workflow?

I need to create a Custom Action that's displayed in the Action list for a Workflow. How would I go about this?
3
votes
3answers
1k views

Central Admin Custom Action menu not appearing?

I am trying to add a custom Menu item under "Site Collections" in central admin. Following is my elements.xml file. <?xml version="1.0" encoding="utf-8"?> <Elements ...
3
votes
1answer
194 views

Custom Action Safe Control 2007

In extension to this question of mine, If I put location of custom action as "Location="Microsoft.SharePoint.StandardMenu" it gives me error Failed to create a control from assembly '', class ...
3
votes
2answers
896 views

Creating custom Actions within an Retention Policy

Does anyone know, either via the object model or through xml, if you can create custom actions for a retention policy, which is defined as part of an Information Management Policy? I know that you ...
2
votes
1answer
1k views

How to add Two java script file in element .xml

I am using 2 button in custom tab and each button has a .js file to load . Could you please say me how to use 2 .js file in the same element .xml and here is my code for element xml <?xml ...
2
votes
2answers
799 views

Customizing social tags and notes buttons on the ribbon

I want to change social tags and notes buttons in the ribbon, but I don't know how and even if it is possible. So we have 2 social buttons in the ribbon, I like it and Tags & notes. I want to ...
2
votes
2answers
167 views

Accessing the propery bag from an elements.xml file

I want to access some configuration data stored in the property bag. I want to access this information from a elements.xml file. This elements.xml file contains a Ribbon with Tabs and Buttons. Is ...
2
votes
2answers
1k views

Ribbon Button Not Working In Home Page (Home.aspx) And Any Site Pages

I've created a "Hello World" ribbon button as per MSDN code sample: http://msdn.microsoft.com/en-us/library/ff630938.aspx The "Hello World" ribbon button is working only in AllItems.aspx (i.e. In the ...
2
votes
1answer
2k views

Hide “New Site” on Site Actions menu?

Using SharePoint 2010, how do I remove "New Site" from the Site Actions menu. I believe I can do this through permissions but would like to remove for all users (and replace with a custom action ...
2
votes
1answer
305 views

Information needed to get specific list / user group

I am working on a Custom Action that I want to add to all list instances as well as all user groups. The purpose is to export the list / group as a document to allow the user to export it when Client ...
2
votes
1answer
156 views

Custom Action in user dropdown

Im trying to implement a custom action in the logged in user dropdown (when you click 'sp_admin' in the image below). The custom action should be a text called "Switch user", which when clicked ...
2
votes
2answers
634 views

'Custom Action' on SharePoint 2010 List, Ribbon etc

What are the situations when we must use 'Custom Action' on SharePoint 2010 List, Ribbon etc. many times same functionality can be achieved by other means also. Why 'Custom Action' is must in that ...
2
votes
3answers
809 views

list item menu's custom action on content type (only SPD2010)

Is it possible to have a custom action List Item Menu in a document library on a specific content type, created in SPD 2010? In code I know is possible, but I'd rather try it out in SP Designer. Also, ...
2
votes
1answer
2k views

Javascript call to NewItem2 error “TypeError: Cannot read property 'tagName' of undefined”

Overview I have a CustomAction for a button on the ribbon that calls a command in a javascript file. The command fails in the inplview.debug.js file on the following lines (1745 - 1748) in the ...
2
votes
2answers
472 views

Caml defined Custom Action, UrlAction and the multi language interface

When defining a custom action via the CAML schema definition, the UrlAction parameter specifies the "site or site collection relative URL of the page, for example, ~site/_layouts/sampleurl.aspx or ...
2
votes
2answers
733 views

How to add a custom link to Central Admin quick launch?

I'm attempting add a page for my collection of apps to the Central Admin quick launch in SharePoint 2010: Following SharePoint's out-of-the-box behaviour, a custom action group like this should be ...
2
votes
0answers
22 views

How to implement a custom action to run code with access to the current item columns

I am using sp2013. I have a custom list which is using a custom content type. I would like to implement some link or button which is running some code. First you will need to select a listitem. In ...
2
votes
0answers
343 views

Is it possible to add a CustomAction in a SharePoint 2013 Survey Settings menu?

We have an application deployed on SharePoint 2013. Part of the application adds custom items to the ribbons of lists and libraries and the edit control block of list and library items. This is the ...
2
votes
1answer
122 views

Load List Item Ribbon tab on page load when using Page in Pages Library

My question is a little bit different than the other missing / loading ribbon questions and I'll explain why. In order to properly style my application, I've created a page in the Pages Library and ...
2
votes
0answers
285 views

SP2010 Ribbon add confirm logic on publishing a page

I need to display a confirm popup when page is published to warn about unpopulated publishing page fields. User might contiune in which case page will be published, or user might cancel publishing. ...
2
votes
1answer
1k views

How to add a custom action in Ribbon.EditingTools.CPEditTab.Markup with SharePoint Designer or PowerShell?

I'm trying to add a custom action in the Ribbon.EditingTools.CPEditTab.Markup group. My goal is to add a button that fires a custom javascript that inject som html content in the rich editor control ...
1
vote
2answers
273 views

How can the deployment of a feature (or element) be made dependent on the SharePoint version (2010/2013)?

I have a solution (deployed in the Sandbox) that declaratively creates CustomActions (menu items). It works fine in SharePoint 2010 and 2013, but we don't like the look in 2013 so I'd like to exclude ...
1
vote
1answer
865 views

How get item in CommandUIHandler EnabledScript use javascript

can anyone help me with the problem: I have a list external items from my system and i add a custom button on a ribbon. My item has a state and depending on the state my button should be available or ...
1
vote
5answers
1k views

How to create workflow & submit data using infopath form?

I have designed the Form in InfoPath. I want to submit the form's data in my Sharepoint site. Sothat the supervisor(the higher level)person can check the details and he can Approve/Reject the ...
1
vote
2answers
1k views

Adding button to ribbon in CommandUI.Ribbon

I'm trying to add a button to the ribbon, in the same place the default "I Like It" and "Tags & Notes" buttons are located. I the elements.xml file for this feature (SocialRibbonControl) and tried ...
1
vote
2answers
2k views

Remove button from Ribbon in a specific toolbar

I need to remove 'Upload Document' button from the Ribbon on a Document Set library, with the toolbar set to "None". I can successfully remove it from the Full Toolbar (which is the default one) ...
1
vote
1answer
1k views

Reference a javascript script in a ribbon custom action xml

Reference a .js file on a spribbon custom action elements.xml on my javascriptmethods.js file: function test(){ alert('test message.');} on my custom action elements.xml: <CustomAction ...
1
vote
2answers
1k views

CustomAction : Put JavaScript code in a dedicated file

I have a custom action that look like this : <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="MyCustomAction" Location="CommandUI.Ribbon"> ...
1
vote
1answer
576 views

hide ribbon menu for workflow

I want to hide the workflow button: Ribbon.List.Settings.ManageWorkflows Which scope should the feature have (web or site)? Now I try: <HideCustomAction Id="RemoveRibbonButton" ...
1
vote
1answer
40 views

Hide action from list settings

I want to hide/disable/remove the link Form settings from all lists in my site collection. How do I go about this? I think I can do this on a per site basis using HideCustomAction but I don't know ...
1
vote
2answers
592 views

Custom Button added in Ribbon is disabled

I have successfully added a new button in the ribbon. But when I check , it is disabled and I cannot even click it. The following is the code that I have used: <?xml version="1.0" ...
1
vote
1answer
348 views

I'm looking for a way to detect the ribbon load event

I'm looking for a way to hide a button from the ribbon using javascript, but to do this I need to wait until the elements of the ribbon are loaded. Is there a way to detect such event?
1
vote
2answers
207 views

LinkButton with click method doesn't work

I have an issue with LinkButton in my toolbar, basically i deployed a custom action which adds a link button to the menu, this link button on click should do some task like adding an item, but this ...
1
vote
3answers
104 views

Minimizing the loadtime

I work with a sandboxed solution which is deployed in a .wsp file. The solution mostly contains our webparts. The pages that contains these webparts, are slow at startup, but it seems that there is ...
1
vote
1answer
151 views

MenuItemTemplate calling a method instead of URL

How can I add my method instead of URL of a website, I can see another option as "ClientOnClickScript" but not sure how exactly I can do it tho, here's my code public class MyUserControl: WebControl ...
1
vote
1answer
655 views

(Sandbox solution) Ensure my javascript file is loaded after core.js

Using a CustomAction in the location of a scriptlink, I'm inserting a javascript code, however I need this code to run after core.js runs. Does anyone know how I can achieve this? My CustomAction ...
1
vote
1answer
290 views

perform action on incoming mail

I need to perform simple decoding of .eml files and adding some contents from it to a list. I have already written the .eml decoding part and adding stuff from it to list, but i need to tell ...
1
vote
2answers
1k views

Use View Ribbon Custom Action on Multiple List Items

I create a View Ribbon-scoped custom action using SPD 2010 that runs some Javascript. If I create it in an ECT list I can use it with multiple items. However, if I create it in a standard SharePoint ...
1
vote
1answer
3k views

Adding custom button to ribbon - Button doesn't get displayed

I'm trying to add a custom button to a SP2010 ribbon in the DisplayFormToolbar for a list item. The list is external, although I don't think that matters but still... This is my custom action ...