How can we apply dynamic filters to a dropdown lookup in FreedomUI?
Hi Community,
We have a requirement where we need to create a filter for a specific lookup (“Responsável”) based on the value of another lookup (“Empresa Interna”). You can see both fields in the image below.
To achieve this, we tried implementing the filter using crt.LoadDataRequest, which works. However, the filter only executes once. This means that if we change the “Empresa Interna” value again, the “Responsável” lookup does not update accordingly.
So far, the only workaround we’ve found is to open the lookup in a Selection Window. In this case, the filter executes every time we open the lookup selection page.
However, this is not ideal, we need a way for the filter to execute multiple times when using the dropdown option.
Someone had an issue similar to mine https://community.creatio.com/questions/dynamic-lookup-filter-freedom-ui, but the solution is not clear enough.
How can we apply dynamic filters to a dropdown lookup in FreedomUI?
Thank you.
Best Regards,
Pedro Pinheiro
Like
Hi Pedro, please check my article here https://community.creatio.com/articles/dynamic-change-some-quick-filter-content. The general idea is quite the same.
Hello,
We want to inform you that there is now a way to configure such filters using a no-code method.
To achieve this, you can utilize Business Rules, which allow filtering of lookup field values based on another field selected on the page. This approach enables dynamic behavior without requiring custom development, making configuration more efficient and accessible.
For your convenience, we have included an article below that provides detailed guidance on implementing this functionality.
Filter lookup values based on another lookup
Hi Pedro, please check my article here https://community.creatio.com/articles/dynamic-change-some-quick-filter-content. The general idea is quite the same.
Dmitry S,
It's working. Thanks you!
Best Regards,
Pedro Pinheiro