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 what the Id
and HideActionId
of this is.
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}&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>
IPFSSettingsListEditPage
mentioned when I went 'Inspect Element' but I wasn't sure if this was the ID. Thanks!