I've created a custom Address form, but I don't kn...
# ask-stanley-ai
a
I've created a custom Address form, but I don't know how to make it be used when creating a new Address, and I also don't know how to set up a custom field or list on a custom transaction type to enable addresses to be added to the custom transaction by the user when they are creating or updating the custom transaction. Can you help me figure that out?
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** To set up a custom address form to be used when creating a new address, you need to apply it to countries for it to show up. This can be done in the settings of the custom address form. To create a custom address on a transaction using a client on save or user event before submit, you can try to edit the customer record first to add the address. Then get the transaction record (current record) in Dynamic mode, and grab the new address from the shiptoselect SELECT field. However, it's important to note that addresses are subrecords attached to the parent record - so if the parent record doesn't exist yet (as in client save or UE beforesubmit on create), it can't attach it. If you want to create a custom address that is saved on just the transaction, and would not be saved or pulled from the customer record, you can use the normal address fields with ship or bill in front. Set those fields to get your custom address that is stored on the sales order. To create a custom field (list/record) from the customer address book to use on a project record, you can make your own field using
Form.addField
in a user event script and add your own select options using
Field.insertSelectOption
in a client script. However, it's not possible to show the full address in the dropdown instead of just the first address line. When you use the List/Record for "Address", it's just empty. Please note that these solutions are based on the current version of NetSuite and may change in future updates.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.862020373
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.849296808
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848335087
Please provide your feedback on this answer.