Filter

How can add field into a relate field filter.

Scenario. 

I have a file product type field containing "fruits". and when select a product from a relate field it will automatically filter the products by what the value in product type field..