Hi all
This will help anyone attempting to hide buttons which the standard NetSuite API does not allow you to hide.
This is what we have done before, it is a snippet from a Before Load User Event Script:
var htmlCode = ''; var htmlFieldObject = null; htmlCode = "<script>"; htmlCode += "document.getElementById('tbl_saveprint').style.display = 'none';"; // Save & Print (TOP BUTTON) htmlCode += "document.getElementById('tbl_autofill').style.display = 'none';"; // Copy Previous (TOP BUTTON) htmlCode += "document.getElementById('tbl_secondarysaveprint').style.display = 'none';"; // Save & Print (Bottom Button) htmlCode += "document.getElementById('tbl_secondaryautofill').style.display = 'none';"; // Copy Previous (Bottom Button) htmlCode += "</script>"; htmlFieldObject = form.addField("custpage_jshtml", 'inlinehtml', "Inline JS"); htmlFieldObject.setDefaultValue(htmlCode); What this does is it gets the HTML Table surrounding the Button, and sets the CSS Display Attribute to None, essentially making it disappear from view.As always, hacking the DOM like this has limited mileage, so use at your own peril!Pete.