pen one
04/28/2022, 8:51 PMserverWidget.FieldType.Select
. The filter is supposed to take place when a custbody field is changed but the filter is not working and in console I see the following error: The following operation or use case is not yet supported in SuiteScript: update popup select options
.
Below is the part of the script that is being used to filter the field:
var addLabellCtc = record.getField('custpage_contact_address_label');
addLabellCtc.removeSelectOption({value : null});
if(addressSearchResults.length != 0) {
for(var i in addressSearchResults) {
addLabellCtc.insertSelectOption({
value : addressSearchResults[i].id,
text : addressSearchResults[i].getValue({
name: "addresslabel",
join: "Address"
})
});
}
}
What am I doing wrong?jen
04/28/2022, 8:53 PMjen
04/28/2022, 8:54 PMMAXIMUM ENTRIES IN DROPDOWNS
in your Preferencespen one
04/28/2022, 8:55 PMjen
04/28/2022, 8:57 PMpen one
04/28/2022, 8:59 PMjen
04/28/2022, 9:03 PMpen one
04/28/2022, 9:04 PMform.addField({
id: 'custpage_contact_address_label',
type: serverWidget.FieldType.SELECT,
label: 'Select Address',
source: '-137'
});
pen one
04/28/2022, 9:06 PMjen
04/28/2022, 9:07 PMpen one
04/28/2022, 9:08 PMpen one
04/28/2022, 9:15 PMremoveSelectOption
and still got the error but this time at Field.insertSelectOption
.battk
04/28/2022, 9:52 PMpen one
04/28/2022, 9:55 PMpen one
04/28/2022, 9:56 PMbattk
04/28/2022, 10:07 PMpen one
04/28/2022, 10:41 PMbattk
04/28/2022, 10:42 PMpen one
04/28/2022, 10:42 PM