https://netsuiteprofessionals.com logo
#suitescript
Title
# suitescript
p

pen one

04/28/2022, 6:11 PM
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

battk

04/28/2022, 6:49 PM
use the internal id number of the
List/Record
field that you get while creating a custom field in the ui
p

pen one

04/28/2022, 7:56 PM
perfect. thanks