In a Suitelet I’d like my form to have a SELECT dr...
# suitescript
j
In a Suitelet I’d like my form to have a SELECT dropdown to pick a folder in the file cabinet. Is this possible?
👀 1
e
I tried this but no options showed up.
_var selectField = form_.addField({
id: 'user_id',
label: 'User',
type: _serverWidget_.FieldType.SELECT,
source: _record_.Type.FOLDER
`})`; If it were me, I'd do a folder search (hopefully you can narrow down the folders with criteria) and add each result as a select option (removing the source property from the .addField) and using field.addSelectOption
s
Pretty sure there isn't a folder list you can use, you need to make your own as suggested.