Dynamically populate conditional drop down on two lookups

Dynamically populate conditional drop down on two lookups

Hey there,
Is there any method to dynamically populate fields based on two lookup fields as given in the guide here:
https://www.zoho.com/creator/help/fields/add-to-picklist-dynamically.html 

I have two lookup fields on which I need to have conditional drop down. 

Any suggestions would be appreciated! 

Thanks in advance!