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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
SuiteWorld | October 25–28, 2026 | Las Vegas
Registration opens June 9. Be ready when passes drop. Get the green light now - Convince your boss
Registration opens June 9. Be ready when passes drop. Get the green light now - Convince your boss
Suitelet Passing parameter thru Button
so i have a client Script linked to a suitelet for running functions
suitelet is
var myForm = nlapiCreateForm('my suitelet); myForm.setScript('customscript_myscript'); var testStr = { "mystr" : "show this!" }; myForm.addButton('custpage_mybtn', 'do stuff', 'testingFunc(' + testStr + ')' ); response.writePage(myForm);the customscript_myscript looks like
function testingFunc (testerstr){ alert('button is for testing.' + testerstr.mystr); }is it possible to pass objects to client script function with the added button? or its just not possible?
ive looked and tried various things and changing the parameter format but nothing seems to work.
0