I've added a custom field in the address form, thi...
# suitescript
b
I've added a custom field in the address form, this field is a list/record field that should be linked to another address book record, I want to filter the choices for this field so that the user can only see the addresses for the linked entity, so for example if I'm editing a customer address and this customer has 10 addresses I only want to see those 10 addresses in the field. From what i can see It doesn't seem to be possible to do it with sourcing and filtering function but I can't find a way to do it with suitescript either
w
@Brandon I found these two links which allowed me to do what you are looking for. https://ceanatech.com/2019/11/06/suitescript-2-0-sample-code-for-filtering-a-dropdown-field/
b
you will end up needing suitescript to do this
a standard custom field needs a list/record entity field to use for filtering options
and you are unlikely to have a native entity field to use for filtering, the entity field isnt actually a list of entities
so that means you need to create another list/record entity field and set it using suitescript so that you can use it with the filtering of the original field