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
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