Is it possible to add an address section to a cust...
# general
s
Is it possible to add an address section to a custom record that acts like adding an address to a customer? I have the need to allow an address to be set on a custom record but I’d like to use NetSuite’s built in address forms and validation (e.g. sourcing the city and state from the zip).
b
i dont think you can add an address to a custom record
you can reference an existing address with a address book select custom field
s
Yeah but it doesn’t seem to add the ability to add a new address. My custom record is linked to a customer so I could source the customer’s address but I need the ability to add a new address directly to the record
b
I doubt you can add an actual address subrecord to your custom record. NetSuite doesn't expose a way to add subrecords to custom records.
k
You could add a 2nd custom record to your desired behavior, but obviously that disconnects it from all functionality
s
Thanks, sounds like I’ll need to build the functionality myself
I just built each of the fields on the custom record and used a client script to call a quick api that returns the city name and state code based on zip. Behaves just like the address object, just a little uglier