Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
How to add inline button
Hello all,
In SuiteScript 1.0 we were able to add buttons to NetSuite forms in inline html fields. These buttons would then usually bring up a window with some other info. So now I am trying to do the same type of thing 2.0.
I have a User Event script and the button is showing up on the form.
function beforeLoad(scriptContext) {
//Components button
var newInlineHtmlField = scriptContext.form.addField
({id: 'custpage_pe_componentsbtn_inline',
type: 'inlinehtml',
label: ' '
});
newInlineHtmlField.defaultValue = '<br/><input id="btnPEComponentsList" onclick="onclick_showComponentList();" type="button" name="btnPECompList" value=" Components " style="width:150px; height:30px; cursor: pointer; background-color:#378FFA;border:1px solid #9DBFF2; color:#FFFFFF; font-weight: bold;">';