So cannot really see anything wrong with this, but it throws an error:
{"type":"error.SuiteScriptError","name":"SSS_MISSI NG_REQD_ARGUMENT","message":"Field.addSelectOption : Missing a required argument: options.value"...
Trying to add an empty value option at top of my options list. Here's the code. Operator error or bug?
<span style="font-family:'courier new'">fld.addSelectOption({ value : "", text : "-Select an Option-", isSelected : false });</span> And BTW, the code below works! So addSelectOption in 1.0 allowed an empty option value. Seems addSelectOption in 2.0 does not. <span style="font-family:'courier new'">fld.addSelectOption({ value : " ", text : "-Select an Option-", isSelected : false });</span>