Hi Everyone,
I want to Hide custom action for all users and groups , only anonymous users can see it.
How I can do this ?
Thanks Shubhdeep but it didn’t work also this code must write in ScriptBlock attribute and Location must be ScriptLink
<CustomAction Id=”Id1″ Location=”ScriptLink”
ScriptBlock=”$(document).ready(function () {
var managerName;
var userName = new String($().SPServices.SPGetCurrentUser());
if(!userName)
{
$(‘Id1’).hide()
}” GroupId=”SiteActions” Title=”SignUp”
>
<UrlAction Url=”http://dina/_layouts/15/ListsAndPages/RegisterPage.aspx”/>
But i need the location is Microsoft.SharePoint.StandardMenu
if you have solution for this I will be pleased
Thanks In Advance