Hide toolbar items from menu.

Hi all,

I need to hide toolbar items from the Menu,

I have tried this

if ({sc_menu_item} == “item_5”)

{
sc_btn_display(“btn_1”,“off”);
}

I have tried this

if ({sc_menu_item} == “item_5”)
{
echo “<style>#btn_1 { display: none !important; }</style>”;
}

all without success.

any input would be very much appreciated

I think it should be:

if ({sc_menu_item} == "item_5")

{
sc_btn_display("item_5","off");
}

Here is the basic idea.
I assume you redirect to a different application by clicking on a menu item.

If so, put this code in the onApplicationInit or onScriptInit event of the application otherwise use a blank application.
It doesn’t work in the menu application itself.


echo "<script>$('#btn_1', parent.window.document).css('display', 'none');</script>";

That should get you on the way.

jsb