CRM - Dynamic Lookup

CRM - Dynamic Lookup

I have a custom module that has a lookup to the Account module and a lookup to the Contact module on the main form.  On changing the Account lookup, I want the Contact lookup to be cleared and then only enable contacts that are linked to the selected account to be chosen.  Account is a mandatory field but Contact isn't.

In other CRMs this is really simple but can't seem to get it to work with Zoho.  Any help greatly appreciated.