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;
JessicaL
12/16/2022, 5:36 PM
fyi - form is defined as form.context.
s
Stuart Anderton
12/16/2022, 5:42 PM
I don't think you can do it in SuiteScript 2. You have to manipulate the page code directly.
j
JessicaL
12/16/2022, 5:45 PM
Ok, that's what I was starting to think. Thanks! I'll hide a field in there and jquery it out.