I have a select field I am creating via serverWidg...
# suitescript
p
I have a select field I am creating via serverWidget where I need the source to be address book. I tried the below but it is not working. What would be the correct source name for the address book?
Copy code
form.addField({
                id: 'custpage_location',
                type: serverWidget.FieldType.SELECT,
                label: 'Select Address',
                source: 'addressbook'
            });
b
use the internal id number of the
List/Record
field that you get while creating a custom field in the ui
p
perfect. thanks