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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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