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.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Updating Suitelet Sublist Fields by client-side script
Hi,
I am trying to update a Suitelet sublist fields using a button and client-side script. Is this possible? My script simply clears the field. Does the sublist have to be of a certain type e.g. inlineeditor?
The idea...
Create a select field with a source to a custom record and a button that when pressed it will up take the value of the select field and update a column (every row) on my sublist to that value.
What I have so far...
function suitlet(objRequest,objResponse){ var objForm = nlapiCreateForm('Migrate Sales Order Lines'); // Create Form objForm.setScript('customscript_contract_migration_so_cs'); //same script file // add Sublists var slSO = objForm.addSubList('sl_trans', 'list', 'Sales Order Lines'); slSO.addField('custpage_checkbox', 'checkbox','Select'); slSO.addField('custpage_id', 'text', 'ID') slSO.addField('custpage_num', 'text', 'Number') slSO.addField('custpage_so', 'text', 'Sales Order'); slSO.addField('custpage_customer', 'text', 'Customer'); slSO.addField('custpage_amount', 'currency', 'Amount'); slSO.addField('custpage_startdate', 'text', 'Start Date'); slSO.addField('custpage_bo', 'text', 'Billing Option'); slSO.addField('custpage_bo_new', 'select', 'Migration Billing Option','customrecord_billing_options'); // <-- this is the field I want to update via button and field selection //SEARCH blah blah (skipped to avoid boredom) for(var i=0;i<arrTransResults.length;i++){ slSO.setLineItemValue('custpage_radio', i+1, stSelectRadio); slSO.setLineItemValue('custpage_id', i+1, arrTransResults[i].getId()); slSO.setLineItemValue('custpage_num', i+1, arrTransResults[i].getValue('number')); slSO.setLineItemValue('custpage_so', i+1, 'Sales Order #' + arrTransResults[i].getValue('number')); slSO.setLineItemValue('custpage_line',
Tagged:
0