Applying Custom Filter on a Lookup Field without Writing Code
Introduction
In some scenarios, makers have to filter lookup fields to display proper records for a related table on a specific form. Below is a comparison table for each possible way to do so,
Out of the box | JavaScript | byld.dev | |
Filter based on another lookup field with 1:N relationship | ✅ | ✅ | ✅ |
Set the filter based on a system view | ✅ | ✅ | ✅ |
Conditional filtering | ❌ | ✅ | ✅ |
Custom complex filter | ❌ | ✅ | ✅ |
Can filter Header control | ❌ | ✅ | ✅ |
Can filter BPF control | ❌ | ✅ | ✅ |
No code | ✅ | ❌ | ✅ |
Apply a custom filter with byld.dev
Create a new byld flow
Click Edit to start configuring your flow
Set the proper trigger for your flow
Add a new step "Apply lookup custom filter"
Configure the step by filling in the below
Choose the control you want to apply the custom filter on
Write the logical name of the table you're filtering on
Filter: Add the filter Xml tag
💡
You can download FetchXml from a view filter and take the filter tag and add it to the step
And then Publish!
Ready to dive deep? Here is a 4.5 minute video to explain and demonstrate how to do this with no-code using byld flows