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
Trigger submit button in suitelet
Hi,
I am facing trouble is triggering the submit button in a suitelet. The script never goes to the "else" part to trigger the button. Following is a simple suitelet I am testing and facing trouble. Any help would be appreciated.
function demoHTML(request, response) { if (request.getMethod() == 'GET') { // Front End var form = nlapiCreateForm('Test form'); // Add buttons form.addSubmitButton('Submit'); form.addResetButton(); response.writePage( form ); } else { var html = '<html><body><h1>Hello World</h1></body></html>'; response.write( html ); response.setHeader('Custom-Header-Demo', 'Demo'); } 0