Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Is it possible to filter the inventory item list in dropdown Select type in Suitelet?
Hello community,
I have a Suitelet script that displays a form that was created using N/ui/serverWidget. As part of this form I have a dropdown where you pick an inventory item, this field is generated this way:
form.addField({
id: 'custpage_p_' + id,
label: 'Item ' + id,
type: ui.FieldType.SELECT,
container: 'merchandisegroup',
source: 'item',
});
My question is, is there a way to filter the inventory item list in this dropdown so it only shows a subset of items?
I'm thinking maybe sourcing the dropdown with a saved search which I can filter however I want but I'm not certain what would be the best way to accomplish this,