Trying to hide a sublist button (under specific ci...
# suitescript
j
Trying to hide a sublist button (under specific circumstances) in a beforeLoad. Is it possible to do? I've hid top level buttons just fine using this method but I'm getting that the form.getbutton is returning as null. Am I formatting the recmach stuff incorrectly?
Copy code
let newCollection = form.getButton('newrecrecmachcustrecord_xxxx_cf_contract');
    newCollection.isHidden = true;
fyi - form is defined as form.context.
s
I don't think you can do it in SuiteScript 2. You have to manipulate the page code directly.
j
Ok, that's what I was starting to think. Thanks! I'll hide a field in there and jquery it out.