Home > SharePoint, SharePoint 2010 > SharePoint Survey – Custom Action

SharePoint Survey – Custom Action

Steps for adding a new custom action into the SharePoint Survey List

First step is to create an Empty SharePoint Project. Then add a module. Edit the elements file and add following

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <!-- Survey Actions Menu Dropdown -->
  <CustomAction Id="6D6F6574-57CD-4BDD-88E5-9651A066140E"
    RegistrationType="List"
    Description="DescriptionGoesHere"
    RegistrationId="102"
    GroupId="ActionsMenuForSurvey"
    Location="Microsoft.SharePoint.StandardMenu"
    Sequence="4"
    Title="TitleGoesHere"
    ImageUrl="/_layouts/images/ctoa32.png">
    <UrlAction Url="/_layouts/THEPAGETOOPEN.aspx?ListId={ListId}&amp;SiteUrl={SiteUrl}"/>
  </CustomAction>
</Elements>

Add a new feature and add this module as part of feature activation.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: