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!
Get sublist in SuiteLet POST (suitescript 2.0)
Hi,
I have built a Suitelet in suitescript 2.0. I have added a sublist to the form, and some body fields. When submitting the form, I am able to retrieve the body field values via the parameters, but I am not able to obtain the sublist via the parameters (execution log states the sublist is undefined).
Here is an example of the code I am using:
...
//GET
var form = ui.createForm({
title: 'myForm'
});
var valueField = form.addField({
id: 'custpage_value_field',
type: ui.FieldType.CURRENCY,
label: 'Total Value'
});
var sublist = form.addSublist({
id: 'custpage_sublist',
label: 'My Sublist',
type: ui.SublistType.LIST
1