Does anyone have any idea how to populate a relate field from another relate field? We're on 6.1.1 and have a layout that has a Contact Relate field and an Account Relate Field. What we need to do is populate the account relate field when the contact relate field is populated. Obviously it would be populated with the account related to that contact. I think I'm in the right place, I'm in editviewdefs.php - but I'm having some issues with getting this to work. I know I could do it through a logic hook, but there is a GUI aspect that the client wants to see, so they want to see it populate after they select it. This is also in the Opportunities module, in case that helps or changes anything.

Any help would be greatly appreciated.