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!
Client script in Suitelets
Hi All,
Wonder if anyone has experienced the same as me. I have a suitelet which has a few fields and a button on, the script extract is below: -
var form = nlapiCreateForm('Availability Check Results'); form.setScript(41); var field = form.addField('textfield','text','CLI'); var exitButton = form.addButton('btnexit','Exit','Exit_Onclick()');i have uploaded a client suitescript which has the id 41 (which is referenced in the code above). The client suitescript is as follows: -
function Exit_Onclick() { alert('Exit form'); } Nothing special about this but i have had this working. The last time i ran this was a couple of days ago but when i hit the Exit button all i get is the "Object expected" javascript error.
0