Filter on a lookup field

Filter on a lookup field

Hi Support

I have a lookup field called "Agent" in my potentials module. When I click it, it displays a list of agents defined (agent is another custom module). 

I want to be able to add a boolean active/inactive to the agent module and have this lookup from potentials only show active agents.

How do I do that? The popup to define the field is quite simple (attached a screenshot). 

Regards

Nick