Is there a simple way to hide the Mark All / Unmar...
# suitescript
c
Is there a simple way to hide the Mark All / Unmark All buttons on a Suitelet? I tried this method I found on Prolecto, which does work but I don't like the way it looks. You see the buttons disappear and doesn't look great without more work. There is an existing suitelet in our environment where those buttons aren't present, but nothing stands out. They don't appear to be using a HTML back to hide them.
Copy code
//create an inline html field
var hideFld = context.form.addField({
	id:'custpage_hide_buttons',
	label:'not shown - hidden',
	type: serverWidget.FieldType.INLINEHTML
});
 
var scr = "";
scr += 'jQuery("#custpage_sublistmarkall").hide();';
scr += 'jQuery("#custpage_sublistunmarkall").hide();';
n
The markall and unmark all buttons are not there by default. They are being added in to the suitelet sublist with Sublist.addMarkAllButtons() So likely you just need to find that code and remove it
c
Thank you. I removed that code and it removes them and doesn't appear to cause any issues with the functionality of the Suitelet. Will need to test. What's odd is the other Suitelet has the same thing, but they aren't shown. I used that one as a rough template for the one I was building. I'll have to go through it again to understand what's going on.
I figured out what they are doing. They have it nested within an IF statement and the mark/all buttons only show if you select a currency. Otherwise they aren't present.
n
Oh nice. Glad you got it sorted out