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.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Client Script on Suitelet Forms
Hi all, I was looking this weekend some suitelet examples and threads in the forum and didn't find a way for add client script on suitelet forms.
This old thread https://usergroup.netsuite.com/users/showthread.php?t=3214 describes the way to define the different event functions where you are able to set as in normal forms. But in the new API definition it's omitted and you can only select the script file.
nlobjForm.prototype.setScript = function( script, library, pi, sr, fc, vf, ps, vl, rc, li ) { ; } /* set the Client SuiteScript used for this page. */
The nlobjForm.addButton('button_id','Label',"onClickFunction()")
0