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