Filtering returned data when fetching in custom field

I am adding some new fields to Item doctype which will link this item to another item from a different group type.

Is there any way to filter the result when using the Link field?