ANS-1617 · CUSTOM FIELDS, RECORDS & FORMS

How to Implement a Custom Address Field in NetSuite?

NetSuite does not offer a native 'address' custom field type, requiring a custom implementation or sublist for address data.

Short answer

NetSuite does not provide a direct 'address' custom field type. To manage address data, users must implement a custom solution, typically by creating individual fields for each address component (street, city, state, zip) or by utilizing a custom sublist. SuiteScript 2.x offers UI objects like serverWidget.Form and form.addSublist(options) for building such custom interfaces.

Scenario

Users often seek to add a custom field specifically designed to store address information within NetSuite records. However, NetSuite's standard custom field types do not include a dedicated 'address' option, leading to challenges in capturing comprehensive address data directly on a record.

Solution

NetSuite does not offer a native 'address' custom field type. To implement address functionality, it is necessary to build a custom solution. This typically involves one of two approaches:

  1. Individual Custom Fields

    Create separate custom fields for each component of an address (e.g., Street 1, Street 2, City, State/Province, Zip Code, Country). This approach is suitable for records requiring a single address.

  2. Custom Sublist

    Utilize a custom sublist to manage multiple addresses or to provide a more structured input for address data.For advanced UI customization and programmatic creation of such interfaces, SuiteScript 2.x provides relevant objects and functions. Developers can leverage the serverWidget.Form UI object to create forms. To add a sublist to a form, the form.addSublist(options) function is used, where options is an object specifying properties like the sublist ID, type, and label. For instance, a sublist of type 'editor' can be configured to allow inline editing of address components, providing a flexible way to capture detailed address information.

Expert NetSuite Support

Need help with this NetSuite issue?

Custom Fields, Records & Forms consulting and configuration support

Talk to a consultant