Is it possible to create a custom address select f...
# general
m
Is it possible to create a custom address select field on Transaction forms, like this?
a
like Bill-To Select and Ship-To Select?
m
Exactly, but I want to pull in any address. I can set a list/record field using Address Book, but I want to be able to pull the address details into individual fields or a text area so I can print them on a form
a
ok so not custom like the custom option on the bill to and ship to but more of a custombody field that shows address subrecords, yes?
If you are trying to put the individual parts to custom fields I would try a sourcing formula something like {custbody_addressforpdf.addressee}. You might also be able to get away with that dot notation if using an advanced pdf so you dont have to worry about sourcing the parts to the individual fields and just call them direct to the pdf
p
@MySuite curious to see if you were able to accomplish this. I have a similar need - just dont need the printing to pdf part.
b
If you add an entity field to do your sourcing from
you can use the
Source List
and
Source Filter By
fields of the custom field to do add filtering to your addressbook select field
a
On the topic, how would I set a "ship to" multi-select field on purchase orders?
m
@pen one I was able to. I added a custbody field that was an address book type. Sourced it from the entity. I had some weird sourcing behavior using the native entity field so I had to create a copy of it and source form that. Then I created a text area field to hold the text of the address, because the address book field only showed the address label. I found a suiteanswer that contained a ss 1.0 client script that sources in the text of the address to the text area field. The suiteanswer code had 2 errors in it, but when I fixed those it worked great. Answer ID: 81849 The errors are, the suiteanswer says this will work on vendor records, but the script is trying to search customer records. So where you see the work 'customer' you need to have 'vendor' The next error is on the for line. it says x < rec.getLineItemCount it needs to be x <= rec.getLineItemCount The way it is listed in the suiteanswer, it can never find the last address in the list. They
@Ava - I found another suiteanswer that does what I think you want to do. It requires a custom record. answer id: 43165
a
Thank you so much. Will try it!
👍 1