Monday, June 2, 2008

Hiding Action Menu items

Well, this is completely unsupported but we had to hide the Activate and Deactivate choices from the Actions menu on a form the other day. I highly suggest downloading the IE Developer Toolbar to accomplish this. It will assist with getting the ids for these two menu choices. Here is the javascript we implemented:

//HIDE DEACTIVATE AND ACTIVATE MENU ITEM if (document.all._MIchangeStatedeactivate100145 != null) { = "none";} if (document.all._MIchangeStateactivate100146 != null) { = "none";}

1 comment:

sumedha Obeysekera said...

This is really important.. but could you pl tell where we call this JavaScript