Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
NetSuite Tip - Hide a button using jQuery
function beforeLoad(scriptContext) {
let form = scriptContext.form;
// Create an inline HTML field to inject the script
let inlineHtmlField = form.addField({
id: 'custpage_inlinehtml',
type: serverWidget.FieldType.INLINEHTML,
label: 'Inline HTML'
});
// Script to hide the row using jQuery
let script = "<script>jQuery(document).ready(function() { jQuery('Button_ID').hide(); });</script>";
// Set the default value of the inline HTML field to the script
inlineHtmlField.defaultValue = script;
}