Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Injecting the 'button function' ...
So,
Perhaps I'm have 'Scripters Block', but does anyone have an example on how to inject the actual Button Function logic? In other words ... on a before submit of a record (in this case an item), I add a button.
context.<span style="color:'#660e7a'"><strong>form</strong></span>.<span style="color:'#7a7a43'">addButton</span>({ <span style="color:'#660e7a'"><strong>id</strong></span>: <span style="color:'#008000'"><strong>'custpage_generate_rpt'</strong></span>, <span style="color:'#660e7a'"><strong>label</strong></span>: <span style="color:'#008000'"><strong>'Generate Report'</strong></span>, <span style="color:'#660e7a'"><strong>functionName</strong></span>: <span style="color:'#008000'"><strong>'generateFromPublication()' </strong></span>}); 0