Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Checkbox and dropdown list box not working in Button event
I'm trying to set the value of the checkbox to false and the index of the dropdown list box to 0 when the button is pressed. Though the code snippet below works for text boxes, it doesn't work on dropdown list box and check boxes. It is easily achieved in clientscript using nlapiSetfieldValue but I'm coding it in server side script.
// The code for textbox works fine var btnEvent = "document.getElementById('textbox1').style.display='none';"; btnEvent += "document.getElementById('textbox2').style.display='none';"; btnEvent += "document.getElementById('textbox3').style.display='none';"; // The code for dropdown and checkbox does not trigger when the button is pressed btnEvent += document.getElementById('dropdownlistbox').selectedIndex=0;"; //btnEvent += "document.getElementById('dropdownlistbox').options(0).selected = true;"; //btnEvent += "document.getElementById('dropdownlistbox').options[0].selected = true;"; //btnEvent += "document.getElementById('dropdownlistbox').options[0].text = '';"; //btnEvent += "document.getElementById('checkbox').checked='false';"; // the btnEvent is supposed to reset the values of the objects as defined in the codes above form.addButton("custpage_new_authorization","Get New Authorization (Starry Temp)", btnEvent);