Hi All, I`m trying to add field with type 'select'...
# suitescript
s
Hi All, I`m trying to add field with type 'select' that will behave like entity search list. I know that there is an option to add source in addField API, but this field need to be filtered, so I cannot just set source parameter to 'entity'. Is is it possible to set custom search as source? or any other solution The field should be appeared as a search (as shown in screenshot) and not as a dropdown list (there are thousands of entities)
b
e
Whether the field shows up as a list or a search is entirely up to the User Preferences. Specifically, the User's
General > Optimizing NetSuite > Maximum Entries in Dropdowns
preference.
s
Just to make it clear. I run search that can return 1,000 results for example. Than I adding each result via field.AddSelectOption API. If user preference is to represent only 50 entries, than this field will be presented as a search. But if the result of the search is 20 entries, the field will be presented as list. Am I correct?
e
Yep
s
Hi Eric, Unfortunately it doesn`t work like this. I added 1,000 entries to the field and it still shows the field as dropdown list and not as search (in preference maximum number of entries for dropdown is 500). Maybe do you have another idea? 🙏