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