Discussions
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()")