So cannot really see anything wrong with this, but it throws an error:
{“type”:”error.SuiteScriptError”,”name”:”SSS_MI SSI 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?
Code:
fld.addSelectOption({
value : “”,
text : “-Select an Option-“,
isSelected : false
});
And BTW, the code below works! So addSelectOption in 1.0 allowed an empty option value. Seems addSelectOption in 2.0 does not.
Code:
fld.addSelectOption({
value : ” “,
text : “-Select an Option-“,
isSelected : false
});
This is a cached copy. Click here to see the original post.