Hello Community,
I'm having a problem with a filter inside a polymorphic lookup inside a quick create form.
- My quick create form has 2 fields (Field A and Field B), where field A is an OptionSet (option "User" and option "Contact") and field B is a polymorphic lookup (we can have system users and contacts);
- I put an addOnChange in Field A, that calls my filterFunction;
- When field A is with the value "User": I need to filter the polymorphic lookup with only system users;
- When field A is with the value "Contact": I need to filter the polymorphic lookup with the contacts that are linked with an account (I have this account GUID to pass inside the Fetch)
I tried somethings, but I couldn't solve this problem.
Thanks a lot!!