I added a custom sublist field but it doesn't resp...
# ask-stanley-ai
c
I added a custom sublist field but it doesn't respect my maxdropdown preference to make it switch from a listbox to a popup box. Is that even a possibility or are we stuck with the default listbox? Especially with a high volume of options, this isn't workable
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that the behavior you're experiencing with the custom sublist field not respecting the maxdropdown preference is expected. The sublist field types in NetSuite, such as INLINEEDITOR, EDITOR, LIST, and STATICLIST, have their own inherent behaviors and limitations. For instance, INLINEEDITOR and EDITOR types allow for interactive editing but do not provide the ability to disable options. On the other hand, LIST and STATICLIST types do not display the mentioned options (buttons), but they cannot be populated by a client script deployed on a suitelet based on field changes. In terms of filtering sublist values based on another field, it's suggested not to filter the select values directly. Instead, you can perform validation of the selected option either on validateField or validateLine. This is because when you modify a sublist field, you're technically modifying it for all lines, which can lead to the values getting cleared out on previous lines. Unfortunately, there doesn't seem to be a way to change the default behavior of the sublist field types to switch from a listbox to a popup box based on the maxdropdown preference. You might need to consider alternative approaches to handle a high volume of options, such as implementing a custom solution using a suitelet in an iframe or using the sublist.addRefreshButton method. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.840247
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839892566
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828496516
Please provide your feedback on this answer.