Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Multi Select & Select Fields Reloading Suitelet
I have a suitelet that creates a form which includes a multi select field (from a custom record) and a regular select field (dropdown customlist)..
When the user selects the list (from the sublist dropdown) or the multiselect button the suitelet appears to RELOAD and all my declared variables disappear.
The following is a snippet of the code for setting up the fields on the form:
var form = nlapiCreateForm(SUITELET_TITLE, true);
var fldCustomer = form.addField('custpagecustomer', 'select', 'Customer', 'customer');
fldCustomer.setDisplayType('disabled');
fldCustomer.setDefaultValue(stCustomerName);
var fldPONumb = form.addField('custpage_ponumb', 'text', 'PO Number');
fldPONumb.setDisplayType('disabled');
fldPONumb.setDefaultValue(stPONumb);