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.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Form fields & setScript()
Hi Again,
Thanks for all your previous help, I'm "beginning" to get the hang of it all, bits and pieces at a time...
I have a simple form with one text field called "name". I would like a user to enter his name like "Bob" and press a button.
The button will read the value in 'name' and based on his name redirect to another URL.
Here is my code:
function list1(request, response){ var form = nlapiCreateForm("Suitelet"); form.setScript(72); form.addField('custpage_name', 'text', 'name'); form.addButton('custpage_callFunction','ClickME','testme()'); response.writePage(form); } 0