Hi guys, I'm trying to remove the Email button under Communications subtab for Purchase Orders, I found the following code (on SS 2.0):
var messageSublist = form.getSubList('messages');
messageSublist.removeButton('newmessage');
But, I got this error: 'Cannot call method "removeButton" of null'. I added a log to print the messageSublist value, but it returns empty.
Do you know if the sublists have a different name? or if there is something wrong with the code?