I have a suitelet. I created a drop down that I fi...
# suitescript
s
I have a suitelet. I created a drop down that I fill like this var results = queryResultSet.asMappedResults(); for (var jj = 0; jj < results.length; jj++) { _customer.addSelectOption({value: results[jj]['id'],text: results[jj]['name']}); } I want to make one of the "id", as default (Selected). How can I do it ?
c
Do a setVue on it?
w
The is a property for addSelectOption called isSelected that you could set to true.
c
Of course I meant setValue, some autocorrect nonsense going on there
n
you could also just set the field_object.defaultValue