Adding a MULTISELECT field inside an addField work...
# ask-stanley-ai
e
Adding a MULTISELECT field inside an addField works well when using a pre-defined source such as vendor or vendorcategory. It doesn't work well when not using source but instead adding options with addSelectOption. Is there a way, using version 2.1, to get a native-looking multi-select field without using source?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that creating a native-looking multi-select field without using a source in SuiteScript 2.1 is not straightforward. The common approach is to use the
source
attribute when adding a field, which allows you to use a pre-defined source such as 'vendor' or 'vendorcategory'. This will automatically populate the field with the appropriate options and provide a native-looking multi-select field. However, when you want to add custom options to the multi-select field, you would typically use the
addSelectOption
method. But this does not provide a native-looking multi-select field. One of the users suggested creating a custom sublist as an alternative, but this might not be suitable for all use cases. Unfortunately, there doesn't seem to be a direct way to achieve a native-looking multi-select field without using a source in SuiteScript 2.1 based on the conversations provided. ****** 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.834473372
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832213581
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830749512
Please provide your feedback on this answer.