Jeniffer
03/19/2025, 8:56 PMCeligo AI
03/19/2025, 8:57 PMAI generated answer (using internal Slack threads):To disable the ability to add new line items in a sublist with type inline editor in a suitelet, you can use a workaround by creating a custom sublist and handling the user's actions in the custom sublist to apply to the real sublist. This way, there isn't even an option to add new lines as the sublist is of a type that doesn't allow it. Here is a sample code snippet that demonstrates how to create a custom sublist:
javascript
var sublist = form.addSublist({
id: 'custpage_due_date_invoice_sublist',
type: serverWidget.SublistType.STATICLIST, // Use STATICLIST type to disable adding new lines
label: 'Due Date Invoice'
});
In this example, the sublist type is set to STATICLIST
, which does not allow adding new lines. However, please note that with this sublist type, the sublist can't be populated by a client script deployed on the suitelet based on field changes.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/19/2025, 8:57 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.863213539
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.840572894
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833395123
Celigo AI
03/19/2025, 8:57 PM