Hi I have a suitelet in which based on a drop down...
# suitescript
r
Hi I have a suitelet in which based on a drop down field, we are populating a sublist in it on field changed. I want to restrict that a user should not be able to add or remove the lines from the sublist. But everyitme when the value in drop down field is changed the sublist should remove existing lines and populate new ones. Drop Down Field on changing value in this field, the sublist values will change (number of lines vary for each customer)
Copy code
var customer_field = form.addField({
    id: 'custpage_select_customer',
    type: serverWidget.FieldType.SELECT,
    label: 'Customer'
});
Sublist
Copy code
var sublist = form.addSublist({
    id: 'custpage_due_date_invoice_sublist',
    type: serverWidget.SublistType.INLINEEDITOR,
    label: 'Due Date Invoice'
});
I need to disable the below options
n
look at the different sublist types I think those options are because you're using INLINEEDITOR
r
have tested with all 4 INLINEEDITOR , EDITOR require to disable the options LIST, STATICLIST - the mentioned options (buttons) do not appear, but then the sublist can't be populated by client script deployed on suitelet based on field changed.