2

I want to hide/disable/remove the link Form settings from all lists in my site collection.
How do I go about this?

enter image description here

I think I can do this on a per site basis using HideCustomAction but I don't know what the Id and HideActionId of this is.

1 Answer 1

3

You can do that with HideCustomAction.

You can get GroupId and HideActionId from the action itself.

The custom action is as below (taken from C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\TEMPLATE\FEATURES\IPFSSiteFeatures\FormSettings.xml)

<CustomAction
    Id="IPFSSettingsListEditPage"
    RegistrationType="List"
    GroupId="GeneralSettings"
    Location="Microsoft.SharePoint.ListEdit"
    Sequence="230"
    Title="$Resources:ipfscore,FormSettingsTitle;"
    >
    <UrlAction Url="~site/_layouts/FormSettings.aspx?List={ListId}&amp;Source={Source}"/>
</CustomAction>

So your HideCustomAction should be:

<HideCustomAction
      GroupId = "GeneralSettings"
      HideActionId = "IPFSSettingsListEditPage"
      Id = "HideFormSettings" //or any other unique text as ID for this HideCustomAction
      Location = "Microsoft.SharePoint.ListEdit">
</HideCustomAction>
4
  • Ah! That's what I thought. I saw IPFSSettingsListEditPage mentioned when I went 'Inspect Element' but I wasn't sure if this was the ID. Thanks!
    – kei
    Commented Mar 19, 2014 at 22:18
  • But wouldn't that change on the server hide the action for all sites in the farm, not just one site collection?
    – teylyn
    Commented Mar 20, 2014 at 3:02
  • @teylyn, No, for example HideCustomAction can be deployed with a Site or Web scoped feature and will hide the action only on the Site/Web where the feature is activated. Commented Mar 20, 2014 at 9:09
  • @Naim, thanks, that makes sense. I don't do code, so I don't encourage changes in the 14 hive, since most of the changes there apply to the whole farm. But this seems to be different. I can now see that it only applies to sites that use the feature. Thanks for that.
    – teylyn
    Commented Mar 20, 2014 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.