Cannot remove "New" button on action bar

i’m trying to remove New botton on actionbar in domino mail8. in the form “custom_js”, i add these code in Scene_Actions function:

var newAction = [{title:“New”, pos:“1”}];

removeActions(s_TopBranchId, newAction);

when i refresh the mail page, the “New” button has been remove, but when i click on “Draft” botton on outline menu, then i click on “Inbox” button, the “New” button still exist.

how can i solve this problem. thanks

Subject: Try restarting server

Try stopping and restarting the server. I tried your code and it worked fine for me.

Note that you only need to specify the title or the position of the item you want to remove, not both. Example:

var newAction = [{title:“New”}];

Subject: i did it!

Thanks Eric Spencer!