is it possible to add a button to a subtab? I woul...
# suitescript
p
is it possible to add a button to a subtab? I would like to add one to the item subtab.
p
Yes
Copy code
function beforeLoad(context) {
        var f = context.form;
        var itemlist = f.getSublist("item");
        itemlist.addButton({id:'custpage_itembutton', label: 'My Item Button'});
        return true;
    }
🙌 1
s
That adds a button to the sublist, not the tab itself though, right?
I do think that is the only supported option, though.
apartyblob 1
p
Thanks. Will give this a try
t
I have seen buttons on subtabs, although I haven't tried. Someone here, earlier told, they are moved to subtab using DOM manipulation. Let me know how you do that.
163 Views