Questions tagged [custom-actions]

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

Filter by
Sorted by
Tagged with
17
votes
3answers
27k 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 ...
11
votes
1answer
12k 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 ...
9
votes
2answers
15k 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 ...
9
votes
0answers
327 views

Custom Actions in OneDrive for Business

I am trying to add menu options to the Command Bar and the List Item context (ECB) menu in OneDrive for Business. To do this I'm following the same patterns I use when adding menu options to the ...
8
votes
2answers
2k views

Custom ribbon button action always disabled when command is defined

I want to add new button to the ribbon in Pages library. To do so, I have following code: <CustomAction Id="Ribbon.PublishTab.Publishing.Actions.UploadDocumentButton" Location="CommandUI.Ribbon"&...
7
votes
2answers
467 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 ...
7
votes
1answer
2k 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 ...
6
votes
1answer
864 views

Stop Redirect in SharePoint Designer Custom Action to initiate workflow?

I have a Document Library on SharePoint On premise. I have created SharePoint 2013 Workflow for Document Library. I have created Custom Action from SharePoint Designer to Initiate Workflow. so my ...
6
votes
1answer
722 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, ...
6
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 ...
5
votes
4answers
10k 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
6k 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 step....
5
votes
1answer
3k 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?
5
votes
1answer
528 views

Add Users Custom Action on Web Application level on SharePoint 2013

I want to add Users Custom Action on web application level which will be found on all Site Collection including newly created Site Collection. I have tried to add Users Custom Action on Site ...
5
votes
3answers
10k 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?
5
votes
1answer
321 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
458 views

How to add user custom action on top level root site collection in SharePoint Online?

I have a SharePoint Online environment as https:///domain.sharepoint.com. Now I am trying to add custom JS codes to the site page in the above specified site. Whenever I try to add the code on top ...
5
votes
1answer
622 views

Add custom action to the ribbon as submenu of a button

I have a question regarding how to add a custom action to the ribbon as a part of a sub action of existing button. I think the screenshot will make it clear: So i would like to add a custom action ...
4
votes
2answers
3k 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 control ...
4
votes
2answers
2k views

Unable to Unregister UserCustomActions added at location scriptlink using CSOM

Below code was used to add Custom action to site <script type="text/javascript" src="_layouts/15/sp.runtime.js"></script> <script type="text/javascript" src="_layouts/15/sp.js"><...
4
votes
1answer
393 views

How to change SharePoint default redirection after form submit action?

I have created SP survey list. After creating questions need to redirect to my custom page instead of going to overview page.I have included the java script file.Is possible to change the redirection ...
4
votes
1answer
495 views

Call Javascript code in Custom Ribbon Action for office 365

I want to call my javascript code in custom ribbon action in SharePoint online. I tried this code. <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas....
4
votes
3answers
2k 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 xmlns="http://schemas....
4
votes
2answers
3k 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 ...
4
votes
0answers
462 views

SharePoint Online Ribbon Custom Action : Pass multiple itemId in CommandAction's Url

I am developing custom ribbon action using SharePoint hosted app. and this is working fine.When i select any list item and click on custom action then i can get selected list item id. <...
4
votes
2answers
1k 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 ...
3
votes
4answers
4k views

How to enable my ribbon custom action only when 1 or more list items are selected?

I created a custom action in the ribbon by VS. I see the button always. Also when no list items are selected. How can I enable the button only when 1 or more listitems are selected? This is my ...
3
votes
1answer
6k views

Designer 2010 Custom Action rights mask

I have successfully added a custom action button to my ribbon, but I need to have authorization on it. Not everyone should be able to click on it. This is the button: Any idea how I can add ...
3
votes
2answers
3k views

Hide start workflow menu

I want to hide "start workflow" menu with hidecustomaction This example is from a sharepoint book. <HideCustomAction Id="RemoveRibbonButton" Location="CommandUI.Ribbon.Library.Actions....
3
votes
1answer
2k views

How to Export a Document Library to Excel from SharePoint 2010 using a custom button?

I need to do the same as this little fantastic button in the sharepoint ribbon. It allows users to export a document library to an excel spreadsheet. I posted a screenshot below. I would like to have ...
3
votes
1answer
912 views

Application Page deployed to Central Admin does not show

Hi Guys I have this problem: I want to deploy a custom application page to the SharePoint Central Administration. I found these 2 links: http://kamilmka.wordpress.com/2012/04/30/how-to-deploy-a-...
3
votes
2answers
713 views

Add-in targeting modern document library does not support HostWebDialog=“true”?

I am trying to make a SharePoint add-in work with the SharePoint Online "new experience". It adds a custom menu item custom action that runs inside iframe (HostWebDialog="true") and works well with ...
3
votes
1answer
5k views

How to remove custom action/link from list item menu?

In SharePoint 2013, using Designer 2013, I created a custom action for a list while creating a new form for it. Then I scrapped the new form. I actually did this twice. Now, in the list's item menu,...
3
votes
1answer
5k views

How can we create custom actions in new/edit/display form SharePoint ribbon?

We are using SharePoint 2013 for intranet portal. Not apps. We have a document library with documents. On clicking the document we get it opened in a modal popup. On the ribbon of this display form ...
3
votes
1answer
811 views

Remove a rogue Custom Action Script Link

I have been testing out a JavaScript Custom Action add-in injected a test script into my SharePoint Online master page. During one of the change and deploy cycles this seems to have gone awry as a ...
3
votes
1answer
652 views

How to add a text to a body using custom action

Currently I created an action button to my Blog Posts using SharePoint hosted solution. So when an item is created or edited, the user will be able to add content from the host web dialog back to the '...
3
votes
1answer
534 views

What is the correct way to create a custom action using REST API in SharePoint Online?

I'm trying to use Microsoft Flow and the Send an HTTP request to SharePoint action to deploy an SPFx application customizer to a modern team site. I'm able to use the /_api/Site/UserCustomActions ...
3
votes
0answers
183 views

Add UserCustomAction (ECB) for a group of checked items

I've found many code examples online showing how to add a User Custom Action to ECB from JavaScript. Take this one, for example. I've adapted and used the code, and it successfully adds a menu item ...
3
votes
1answer
43 views

full control site setting

In site setting I want to hide a link in the Site Actions group from the Full Control users. Anyone can point me to the right direction?
3
votes
0answers
34 views

Controlling visibility of custom actions depending on views

I am building a Sharepoint Online site which is heavily dependent on workflows. I am using custom actions for workflows which are to be manually started by the user on demand. In some cases, custom ...
3
votes
0answers
134 views

How to create custom action using SharePoint hosted app

Is it possible to create "custom action" under the "Site Action" menu in "HOST WEB" using SharePoint Hosted App.? We do not want to follow the native method of packaging all the necessary files ...
3
votes
0answers
893 views

{StandardTokens} token in CommandAction Url does not get replaced

I have a provider hosted add-in running on a SharePoint Online development site that has several lists as part of the solution. My goal is on when somebody clicks a Ribbon CustomAction associated ...
3
votes
1answer
253 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 '':...
2
votes
2answers
662 views

Delete User Custom Action

I wanted to add an action button in the Site Actions menu and I found a code easy to incorporate : $(document).ready(function() { SP.SOD.executeFunc('sp.js', 'SP.ClientContext', ...
2
votes
2answers
5k 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) ...
2
votes
1answer
3k 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 version="...
2
votes
2answers
1k 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
198 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
4k 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"> <...
2
votes
1answer
332 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 ...