Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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;">';