I have a select field on a suitlet I need to sourc...
# suitescript
r
I have a select field on a suitlet I need to source from a Custom List. Anyone know if the source: default should work on Custom Lists?
Copy code
var templateSelect = form.addField({
    id: 'custpage_tempid',
    type: serverWidget.FieldType.SELECT,
    label: 'Agreement Form',
    source: 379
});
I have tried the List id and internal id.
if not, does anyone know how to load a custom list into a search object or other object
m
You should definitely be able to do this the way you're trying, though I'd recommend using the script ID instead of the numeric ID (it should start with
customlist
).
r
thx, will retry and debug, just didnt want to bang head against wall
👍 1